Class | Bio::Blast::Report::BlastXmlSplitter |
In: |
lib/bio/appl/blast/report.rb
|
Parent: | Bio::FlatFile::Splitter::Default |
Flatfile splitter for NCBI BLAST XML format. It is internally used when reading BLAST XML. Normally, users do not need to use it directly.
get an entry and return the entry as a string
# File lib/bio/appl/blast/report.rb, line 506 506: def get_entry 507: if @parsed_entries.empty? then 508: @raw_unsupported = false 509: ent = super 510: prepare_parsed_entries(ent) 511: self.parsed_entry = @parsed_entries.shift 512: else 513: raise 'not supported for new BLAST XML format' 514: end 515: ent 516: end
get an entry as a Bio::Blast::Report object
# File lib/bio/appl/blast/report.rb, line 519 519: def get_parsed_entry 520: if @parsed_entries.empty? then 521: ent = get_entry 522: else 523: self.parsed_entry = @parsed_entries.shift 524: self.entry = nil 525: @raw_unsupported = true 526: end 527: self.parsed_entry 528: end
rewinds
# File lib/bio/appl/blast/report.rb, line 493 493: def rewind 494: ret = super 495: @parsed_entries.clear 496: @raw_unsupported = false 497: ret 498: end