Method: Bio::Tree#output

Defined in:
lib/bio/tree/output.rb

#output(format, *arg, &block) ⇒ Object

Returns formatted text (or something) of the tree Currently supported format is: :newick, :nhx



230
231
232
233
234
235
236
237
238
239
240
241
# File 'lib/bio/tree/output.rb', line 230

def output(format, *arg, &block)
  case format
  when :newick
    output_newick(*arg, &block)
  when :nhx
    output_nhx(*arg, &block)
  when :phylip_distance_matrix
    output_phylip_distance_matrix(*arg, &block)
  else
    raise 'Unknown format'
  end
end