Skip to content

Commit f4ac109

Browse files
committed
alsieve cram test pytest
1 parent d180b24 commit f4ac109

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

pydeeptools/deeptools/test/test_alignmentsieve.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
BAMFILE_OUT5 = str(ROOT / "alignmentSieve5.bam")
1919
BAMFILE_OUT6 = str(ROOT / "alignmentSieve6.bam")
2020
BAMFILE_OUT7 = str(ROOT / "alignmentSieve7.bam")
21+
BAMFILE_OUT8 = str(ROOT / "alignmentSieve8.bam")
2122

2223
def _assert_equals(expected: str, actual: str) -> None:
2324
if Path(expected).suffix == '.bam':
@@ -145,3 +146,13 @@ def test_alsieve_atacshift():
145146
aln_seive.main(args)
146147

147148
_assert_equals(BAMFILE_OUT7, output_bam_file)
149+
150+
def test_with_cram_output_with_shifts():
151+
"""
152+
Tests Alignment seive with CRAM input along with shifts
153+
"""
154+
_, output_bam_file = tempfile.mkstemp(suffix=".bam")
155+
args = f"--bam {CRAMFILE_IN} -o {output_bam_file} --minMappingQuality 10 --shift 1 -2 3 -4".split()
156+
aln_seive.main(args)
157+
158+
_assert_equals(BAMFILE_OUT8, output_bam_file)
131 KB
Binary file not shown.
220 KB
Binary file not shown.

0 commit comments

Comments
 (0)