Skip to content

Commit

Permalink
Improve test case and loop over VariantContext
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed Jul 15, 2024
1 parent 94393e4 commit e3c2fdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_vcf.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ nextflow_process {
when {
process {
"""
input[0] = file("${projectDir}/tests/chunk_1_0240000001_0260000000.phased.info.gz")
input[0] = file("${projectDir}/tests/chunk_1_0240000001_0260000000.phased.dose.vcf.gz")
"""
}
}
Expand All @@ -119,6 +119,10 @@ nextflow_process {
def filename = process.out.vcf.get(0)
with(path(filename).vcf) {
assert variants.size() == 8285
for(def variant : variants) {
if(variant.getStart() == 240137682)
assert variant.getHetCount() == 22
}
}
}
}
Expand Down

0 comments on commit e3c2fdf

Please sign in to comment.