Created
April 10, 2018 00:12
-
-
Save standage/628b021f61d61f6cd456ed977a2dae74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_alignment_score_threshold(): | |
"""Test for "report all near optimal alignments" strategy. | |
""" | |
contigfile = data_file('aln_scr_thresh.contig.augfasta') | |
contigstream = kevlar.parse_augmented_fastx(kevlar.open(contigfile, 'r')) | |
contigs = list(contigstream) | |
gdnafile = data_file('aln_scr_thresh.gdna.fa') | |
gdnastream = kevlar.reference.load_refr_cutouts(kevlar.open(gdnafile, 'r')) | |
targets = list(gdnastream) | |
calls = list(call(targets, contigs)) | |
assert len(calls) == 1 | |
assert calls[0].position == 23232242 - 1 | |
assert calls[0].filterstr == 'PASS' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment