Sha256: 9977430b9bcf2d5dbdd96aa06b64e2ddf523d7f69e4caca6603efe25beca6738
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
require 'test_helper' puts "\n\neval_alignment test:" class TestEvalAlignmentSimilarity < Test::Unit::TestCase def test_process_at_optimal_alignment IO.popen(Helpers.exec_cmd('eval_alignment','test/data/KLF4_f2.pat test/data/SP1_f1.pat -1 direct')){|f| assert_equal "0.2420758234928527\n779.0\t11\n.>>>>>>>>>>\n>>>>>>>>>>>\n-1\tdirect\n", f.read } end def test_process_not_optimal_alignment IO.popen(Helpers.exec_cmd('eval_alignment','test/data/KLF4_f2.pat test/data/SP1_f1.pat 0 direct')){|f| assert_equal "0.0017543859649122807\n7.0\t11\n>>>>>>>>>>.\n>>>>>>>>>>>\n0\tdirect\n", f.read } end def test_process_at_optimal_alignment_reversed IO.popen(Helpers.exec_cmd('eval_alignment','test/data/KLF4_f2.pat test/data/SP1_f1.pat -1 revcomp')){|f| assert_equal "0.0\n0.0\t11\n.>>>>>>>>>>\n<<<<<<<<<<<\n-1\trevcomp\n", f.read } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
macroape-3.3.3 | test/eval_alignment_similarity_test.rb |