Skip to content

Commit a58bbc9

Browse files
committed
add tests
1 parent 18ffe05 commit a58bbc9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/data/ucsc-chainfile/chainfile_hg19_to_hg38_.chain

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
chain 24611930 chr1 249250621 + 206072707 206332221 chr1 248956422 - 42687778 42947276 254
2+
33374 0 21
3+
6406 0 1
4+
95162 1 0
5+
39481 2 0
6+
4456 0 1
7+
25212 55 16
8+
10374 0 1
9+
1898 0 2
10+
43093
11+
112
chain 14633688187 chr7 159138663 + 10000 159128663 chr7 159345973 + 10000 159335973 7
213
222484 50000 10034
314
183862 17 0

tests/test_liftover.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def test_hg19_to_hg38():
2323
assert len(result) == 1
2424
assert result[0] == ("chr7", 140753336, Strand.POSITIVE)
2525

26+
result = converter.convert_coordinate("chr1", 206072707)
27+
assert len(result) == 1
28+
assert result[0] == ("chr1", 206268644, Strand.NEGATIVE)
29+
2630
# coordinate exceeds bounds
2731
result = converter.convert_coordinate("chr7", 14040053136)
2832
assert result == []

0 commit comments

Comments
 (0)