Method: Bio::Blast::Default::Report#initialize
- Defined in:
-
lib/bio/appl/blast/format0.rb,
lib/bio/appl/blast/format0.rb,
lib/bio/appl/blast/format0.rb
def
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/bio/appl/blast/format0.rb', line 53 def initialize(str) str = str.sub(/\A\s+/, '') str.sub!(/\n(T?BLAST.*)/m, "\n") # remove trailing entries for sure @entry_overrun = $1 @entry = str data = str.split(/(?:^[ \t]*\n)+/) format0_split_headers(data) @iterations = format0_split_search(data) format0_split_stat_params(data) end |