#!/usr/bin/env ruby $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "lib") require 'rphylip' p = Phylip.new("testdata/7") names = p.names puts "Names #{names.to_s}" puts "Prune the first two" list_to_prune = [] 2.times{list_to_prune.push names.pop} p list_to_prune pruned_phylip = "testdata/7.pruned" p.remove_taxa(list_to_prune, pruned_phylip)