File: maf_build_index_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 (33 lines) | stat: -rw-r--r-- 1,621 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
import unittest

import base


class Test1(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/maf_build_index.py ${maf} ${maf_index}"
    input_maf = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny.maf")
    output_maf_index = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny.maf.index")


class Test2(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/maf_build_index.py ${maf_bz2} ${maf_index}"
    input_maf_bz2 = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny.maf.bz2")
    output_maf_index = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny.maf.index")


class Test3(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/maf_build_index.py ${maf_lzo} ${maf_index}"
    input_maf_lzo = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny.maf.lzo")
    output_maf_index = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny.maf.index")


class TestindexOnlyRef(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/maf_build_index.py -s mm8 ${maf} ${maf_index}"
    input_maf = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny_mm8_ind.maf")
    output_maf_index = base.TestFile(filename="./test_data/maf_tests/mm8_chr7_tiny_mm8_ind.maf.index")


class TestindexWithElines(base.BaseScriptTest, unittest.TestCase):
    command_line = "./scripts/maf_build_index.py ${maf} ${maf_index}"
    input_maf = base.TestFile(filename="./test_data/maf_tests/mm10_chr12_lessspe.maf")
    output_maf_index = base.TestFile(filename="./test_data/maf_tests/mm10_chr12_lessspe.maf.index")