| Class | Bio::Alignment::MultiFastaFormat |
| In: |
lib/bio/appl/mafft/report.rb
|
| Parent: | Object |
Data class for fasta-formatted multiple sequence alignment data, which is simply multiple entiries of fasta formatted sequences.
| DELIMITER | = | RS = nil | delimiter for flatfile |
Gets an multiple alignment. Returns a Bio::Alignment object. method should be one of :naseq, :aaseq, :seq, or nil (default). nil means to automatically determine nucleotide or amino acid.
This method returns previously parsed object if the same method is given (or guessed method is the same).
# File lib/bio/appl/mafft/report.rb, line 60
60: def alignment(method = nil)
61: m = determine_seq_method(@data, method)
62: if !@alignment or m != @seq_method then
63: @seq_method = m
64: @alignment = do_parse(@data, @seq_method)
65: end
66: @alignment
67: end
Gets an array of the fasta formatted sequence objects. Returns an array of Bio::FastaFormat objects.
# File lib/bio/appl/mafft/report.rb, line 71
71: def entries
72: @data
73: end