Skip to content

Instantly share code, notes, and snippets.

@standage
Created April 10, 2018 00:12
Show Gist options
  • Save standage/628b021f61d61f6cd456ed977a2dae74 to your computer and use it in GitHub Desktop.
Save standage/628b021f61d61f6cd456ed977a2dae74 to your computer and use it in GitHub Desktop.
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