Sha256: 17db2d58f0c477ed85a3f23d3751720a22efb221e458672491a954919f6097d3
Contents?: true
Size: 836 Bytes
Versions: 2
Compression:
Stored size: 836 Bytes
Contents
require 'helper' class TestRnewick < Test::Unit::TestCase should "find binary files for pruning" do assert binary_available("nw_prune") assert binary_available("nw_reroot") end should "be able to prune a newick string corretly" do # prepare data newick_file = NewickFile.new("test/testdata/20start.nw") outliers = ["Seq10", "Seq11", "Seq12", "Seq13", "Seq14", "Seq15", "Seq16", "Seq17", "Seq18", "Seq19", "Seq20"] expected_pruned_newick_file = NewickFile.new("test/testdata/20start.nw.pruned_to.9") # prune pruned = "test/testdata/tmp_pruned.nw" newick_file.remove_taxa(outliers, pruned) # check pruned_file = NewickFile.new(pruned) assert_equal pruned_file.newickStrings.first.str, expected_pruned_newick_file.newickStrings.first.str # clean File.delete(pruned) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rnewick-0.1.2 | test/test_rnewick.rb |
rnewick-0.1.1 | test/test_rnewick.rb |