Method: Bio::Alignment::Output#output_phylip
- Defined in:
- lib/bio/alignment.rb
#output_phylip(options = {}) ⇒ Object
generates phylip interleaved alignment format as a string
1082 1083 1084 1085 1086 1087 1088 1089 1090 |
# File 'lib/bio/alignment.rb', line 1082 def output_phylip( = {}) aln, aseqs, lines = __output_phylip_common() lines.times do aseqs.each { |a| aln << a.shift } aln << "\n" end aln.pop if aln[-1] == "\n" aln.join('') end |