Sha256: cdeb8cd15b56360fd015b483d6849d86b0014b792029e29854ddd6c190f48b6a

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

#!/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)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rphylip-0.2.0 example.rb