Sha256: 8055eb5e6ba3d3070edfd7d8f71bac9f116dc3eeb611cb8d4affa57e992c7757
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# Require the library require "tree_clusters" # Make the TreeClusters methods available under the namespace # TreeClusters TreeClusters.extend TreeClusters # Read in the Newick formatted tree tree = NewickTree.fromFile ARGV.first # Iterate through all the clades TreeClusters.all_clades(tree).each do |clade| # Print out the clade name and the names of all leaves in that clade printf "%s\t%s\n", clade.name, clade.all_leaves.join(", ") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tree_clusters-0.1.0 | test_files/test.rb |