Module: Bio::BioAlignment::TextOutput
- Defined in:
- lib/bio-alignment/format/text.rb
Class Method Summary collapse
Class Method Details
.to_text(seq, style) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/bio-alignment/format/text.rb', line 5 def TextOutput::to_text seq, style res = "" res += Coerce::fetch_id(seq).to_s + "\t" res += if seq.kind_of?(CodonSequence) and style == :codon seq.to_s else Coerce::fetch_seq_string(seq) end res+"\n" end |