| 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 502
502: def get_entry
503: if @parsed_entries.empty? then
504: @raw_unsupported = false
505: ent = super
506: prepare_parsed_entries(ent)
507: self.parsed_entry = @parsed_entries.shift
508: else
509: raise 'not supported for new BLAST XML format'
510: end
511: ent
512: end
get an entry as a Bio::Blast::Report object
# File lib/bio/appl/blast/report.rb, line 515
515: def get_parsed_entry
516: if @parsed_entries.empty? then
517: ent = get_entry
518: else
519: self.parsed_entry = @parsed_entries.shift
520: self.entry = nil
521: @raw_unsupported = true
522: end
523: self.parsed_entry
524: end
rewinds
# File lib/bio/appl/blast/report.rb, line 489
489: def rewind
490: ret = super
491: @parsed_entries.clear
492: @raw_unsupported = false
493: ret
494: end