Skip to content
Snippets Groups Projects
Unverified Commit c509ea6a authored by van den Berg's avatar van den Berg Committed by GitHub
Browse files

Merge pull request #244 from biowdl/vt

Add option to ignore masked reference to VT
parents 3327f388 fbad1676
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ that users understand how the changes affect the new version.
version 5.0.0-dev
---------------------------
+ vt: Add option to ignore masked reference.
+ bcftools: add sorting and annotation
+ Bam2fastx: Input bam and index are now arrays.
+ Lima: Remove globs from outputs.
......
......@@ -26,6 +26,7 @@ task Normalize {
File inputVCFIndex
File referenceFasta
File referenceFastaFai
Boolean ignoreMaskedRef = false
String outputPath = "./vt/normalized_decomposed.vcf"
String dockerImage = "quay.io/biocontainers/vt:0.57721--hdf88d34_2"
String memory = "4G"
......@@ -33,9 +34,12 @@ task Normalize {
}
command {
set -e
set -eo pipefail
mkdir -p "$(dirname ~{outputPath})"
vt normalize ~{inputVCF} -r ~{referenceFasta} | vt decompose -s - -o ~{outputPath}
vt normalize ~{inputVCF} \
-r ~{referenceFasta} \
~{true="-m " false="" ignoreMaskedRef} \
| vt decompose -s - -o ~{outputPath}
}
output {
......@@ -55,6 +59,7 @@ task Normalize {
outputPath: {description: "The location the output VCF file should be written.", category: "common"}
referenceFasta: {description: "The reference fasta file which was also used for mapping.", category: "required"}
referenceFastaFai: {description: "The index for the reference fasta file.", category: "required"}
ignoreMaskedRef: {description: "Warns but does not exit when REF is inconsistent with masked reference sequence for non SNPs", category: "advanced"}
memory: {description: "The memory required to run the programs", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment