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

fix duoble .bgz and and index to output

parent 4e2a09e1
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,9 @@ task AnnotateSvTypes {
Int timeMinutes = 240
}
String index = if sub(outputPath, "\\.bgz", "") != outputPath then "T" else "F"
String effectiveOutputPath = sub(outputPath, "\\.bgz", "")
String index = if effectiveOutputPath != outputPath then "T" else "F"
# Based on https://github.com/PapenfussLab/gridss/issues/74
command <<<
......@@ -101,7 +103,7 @@ task AnnotateSvTypes {
library(StructuralVariantAnnotation)
vcf_path <- "~{gridssVcf}"
out_path <- "~{outputPath}"
out_path <- "~{effectiveOutputPath}"
# Simple SV type classifier
simpleEventType <- function(gr) {
......@@ -123,6 +125,7 @@ task AnnotateSvTypes {
output {
File vcf = outputPath
File? vcfIndex = outputPath + ".tbi"
}
runtime {
......
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