module Bio::BioAlignment::FastaOutput

Public Class Methods

to_fasta(seq) click to toggle source
# 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