Module: Bio::BioAlignment::FastaOutput
- Defined in:
- lib/bio-alignment/format/fasta.rb
Class Method Summary collapse
Class Method Details
.to_fasta(seq) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/bio-alignment/format/fasta.rb', line 4 def FastaOutput::to_fasta seq buf = ">" buf += seq.id+"\n" buf += if seq.kind_of?(CodonSequence) seq.to_nt else seq.to_s end buf+"\n" end |