Sha256: 751ffbd4e44eb30f8d7c2e181751f59d7a6d486a4ae6876396c882230b5c4e68
Contents?: true
Size: 1.87 KB
Versions: 2
Compression:
Stored size: 1.87 KB
Contents
require 'test_helper' class TestEvalAlignment < Test::Unit::TestCase def test_process_pcm_files assert_equal "0.2420758234928527\n779.0\t11\n.>>>>>>>>>>\n>>>>>>>>>>>\n-1\tdirect\n", Helpers.eval_alignment_output('test/data/KLF4_f2.pcm test/data/SP1_f1.pcm -1 direct --pcm') end def test_process_at_optimal_alignment assert_equal "0.2420758234928527\n779.0\t11\n.>>>>>>>>>>\n>>>>>>>>>>>\n-1\tdirect\n", Helpers.eval_alignment_output('test/data/KLF4_f2.pat test/data/SP1_f1.pat -1 direct') end def test_process_not_optimal_alignment assert_equal "0.0017543859649122807\n7.0\t11\n>>>>>>>>>>.\n>>>>>>>>>>>\n0\tdirect\n", Helpers.eval_alignment_output('test/data/KLF4_f2.pat test/data/SP1_f1.pat 0 direct') end def test_process_alignment_first_motif_from_stdin assert_equal "0.0017543859649122807\n7.0\t11\n>>>>>>>>>>.\n>>>>>>>>>>>\n0\tdirect\n", Helpers.provide_stdin(File.read('test/data/KLF4_f2.pat')) { Helpers.eval_alignment_output('.stdin test/data/SP1_f1.pat 0 direct') } end def test_process_alignment_second_motif_from_stdin assert_equal "0.0017543859649122807\n7.0\t11\n>>>>>>>>>>.\n>>>>>>>>>>>\n0\tdirect\n", Helpers.provide_stdin(File.read('test/data/SP1_f1.pat')) { Helpers.eval_alignment_output('test/data/KLF4_f2.pat .stdin 0 direct') } end def test_process_alignment_both_motifs_from_stdin assert_equal "0.0017543859649122807\n7.0\t11\n>>>>>>>>>>.\n>>>>>>>>>>>\n0\tdirect\n", Helpers.provide_stdin(File.read('test/data/KLF4_f2.pat') + File.read('test/data/SP1_f1.pat')) { Helpers.eval_alignment_output('.stdin .stdin 0 direct') } end def test_process_at_optimal_alignment_reversed assert_equal "0.0\n0.0\t11\n.>>>>>>>>>>\n<<<<<<<<<<<\n-1\trevcomp\n", Helpers.eval_alignment_output('test/data/KLF4_f2.pat test/data/SP1_f1.pat -1 revcomp') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
macroape-3.3.6 | test/eval_alignment_test.rb |
macroape-3.3.5 | test/eval_alignment_test.rb |