Skip to content
Snippets Groups Projects
Commit 09372028 authored by Cats's avatar Cats
Browse files

fix bcftools filter

parent 66399ba3
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,9 @@ task Filter {
input {
File vcf
File vcfIndex
Array[String] include = []
String? include
String? exclude
String? softFilter
String outputPath = "./filtered.vcf.gz"
String memory = "256M"
......@@ -142,7 +144,9 @@ task Filter {
mkdir -p "$(dirname ~{outputPath})"
bcftools \
filter \
~{true="-i" false="" length(include) > 0} ~{sep=" -i " include} \
~{"-i " + include} \
~{"-e " + exclude} \
~{"-s " + softFilter}
~{vcf} \
-O z \
-o ~{outputPath}
......
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