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

detect if compressed

parent 39af0ad7
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,8 @@ task AnnotateSvTypes {
Int timeMinutes = 240
}
String index = if sub(outputPath, "\\.bgz", "") != outputPath then "T" else "F"
# Based on https://github.com/PapenfussLab/gridss/issues/74
command <<<
set -e
......@@ -115,7 +117,7 @@ task AnnotateSvTypes {
gr <- breakpointRanges(vcf)
svtype <- simpleEventType(gr)
info(vcf[gr$sourceId])$SVTYPE <- svtype
writeVcf(vcf, out_path, index=T)
writeVcf(vcf, out_path, index=~{index})
EOF
>>>
......
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