You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pbmm2.wdl
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ task Mapping {
25
25
StringpresetOption
26
26
Booleansort=true
27
27
Stringsample
28
+
StringoutputPrefix = sample + ".align"
28
29
FilereferenceMMI
29
30
FilequeryFile
30
31
@@ -35,19 +36,21 @@ task Mapping {
35
36
}
36
37
37
38
command {
39
+
set -e
40
+
mkdir -p ~{outputPrefix}
38
41
pbmm2 align \
39
42
--preset ~{presetOption} \
40
43
~{true="--sort" false="" sort} \
41
44
-j ~{cores} \
42
45
~{referenceMMI} \
43
46
~{queryFile} \
44
47
--sample ~{sample} \
45
-
~{sample}.align.bam
48
+
~{outputPrefix}.bam
46
49
}
47
50
48
51
output {
49
-
FileoutputAlignmentFile = sample + ".align.bam"
50
-
FileoutputIndexFile = sample + ".align.bam.bai"
52
+
FileoutputAlignmentFile = outputPrefix + ".bam"
53
+
FileoutputIndexFile = outputPrefix + ".bam.bai"
51
54
}
52
55
53
56
runtime {
@@ -62,14 +65,15 @@ task Mapping {
62
65
presetOption: {description: "This option applies multiple options at the same time.", category: "required"}
63
66
sort: {description: "Sort the output bam file.", category: "advanced"}
64
67
sample: {description: "Name of the sample.", category: "required"}
68
+
outputPrefix: {description: "The prefix of the output filename before the .bam extension."category: "advanced"}
65
69
referenceMMI: {description: "MMI file for the reference.", category: "required"}
66
70
queryFile: {description: "BAM file with reads to align against the reference.", category: "required"}
67
71
cores: {description: "The number of cores to be used.", category: "advanced"}
68
72
memory: {description: "The amount of memory available to the job.", category: "advanced"}
69
73
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
70
74
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 commit comments