File: bnMapper_tests.py

package info (click to toggle)
python-bx 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,000 kB
  • sloc: python: 17,136; ansic: 2,326; makefile: 24; sh: 8
file content (45 lines) | stat: -rw-r--r-- 2,279 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import unittest

import base


class Test1(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/out_to_chain.py ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.out --chrsizes ./test_data/epo_tests/hg19.chrom.sizes ./test_data/epo_tests/mm9.chrom.sizes"
    command_line = "./scripts/bnMapper.py ./test_data/epo_tests/hpeaks.bed ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.chain"
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hpeaks.mapped.bed4")


class Test2(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/bnMapper.py -fBED12 ./test_data/epo_tests/hpeaks.bed ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.chain"
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hpeaks.mapped.bed12")


class Test3(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/bnMapper.py -g9 ./test_data/epo_tests/hpeaks.bed ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.chain"
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hpeaks.mapped.bed4")


class Test4(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/bnMapper.py -g3 ./test_data/epo_tests/hpeaks.bed ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.chain"
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hpeaks.mapped.nopeak2.bed4")


class Test5(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/bnMapper.py -g9 -t0.67 ./test_data/epo_tests/hpeaks.bed ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.chain"
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hpeaks.mapped.bed4")


class Test6(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/bnMapper.py -g9 -t0.7 ./test_data/epo_tests/hpeaks.bed ./test_data/epo_tests/epo_547_hs_mm_12way_mammals_65.chain"
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hpeaks.mapped.nopeak2.bed4")


class Test7(base.BaseScriptTest, unittest.TestCase):
    command_line = (
        "./scripts/bnMapper.py ./test_data/epo_tests/hg19_one_peak.bed ./test_data/epo_tests/hg19.mm9.rBest.chain.gz"
    )
    output_stdout = base.TestFile(filename="./test_data/epo_tests/hg19_one_peak.mapped.bed")


if __name__ == "__main__":
    unittest.main()