Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore masked reference #3

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions clinical-validation.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ workflow ClinicalValidation {
File referenceFasta
File referenceFastaFai
File referenceFastaDict
Boolean ignoreMaskedRef = false
Array[ValidationUnit]+ validationUnit
File? highConfidenceIntervals
File? regions
Expand Down Expand Up @@ -68,6 +69,7 @@ workflow ClinicalValidation {
referenceFasta = referenceFasta,
referenceFastaFai = referenceFastaFai,
outputPath = unit.outputPrefix + "_baseline_normalizedCalls.vcf",
ignoreMaskedRef = ignoreMaskedRef,
dockerImage = dockerImages["vt"]
}

Expand Down
14 changes: 14 additions & 0 deletions tests/integration/ignoreMaskedRef.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"ClinicalValidation.referenceFasta": "tests/data/reference.fasta",
"ClinicalValidation.referenceFastaFai": "tests/data/reference.fasta.fai",
"ClinicalValidation.referenceFastaDict": "tests/data/reference.dict",
"ClinicalValidation.ignoreMaskedRef": true,
"ClinicalValidation.validationUnit": [
{
"callVcf": "tests/data/multisample.vcf.gz",
"baselineVcf": "tests/data/expected.vcf.gz",
"sampleNameVcf": "male",
"outputPrefix": "male-sample-output"
}
]
}
7 changes: 7 additions & 0 deletions tests/test_clinical_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@
- path: test-output/sample-output/calledSnps.vcf.gz
- path: test-output/sample-output/evalIndels/summary.txt
- path: test-output/sample-output/evalSNPs/summary.txt

- name: ignore-masked-ref
tags:
- integration
command: >-
cromwell run -o tests/cromwell_options.json
-i tests/integration/ignoreMaskedRef.json clinical-validation.wdl
10 changes: 10 additions & 0 deletions tests/test_sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@
stdout:
contains:
- "Success!"

- name: womtool-ignore-masked-ref
tags:
- sanity
command: >-
womtool validate --inputs tests/integration/ignoreMaskedRef.json
clinical-validation.wdl
stdout:
contains:
- "Success!"