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

fix Map key issue star

parent bce833ff
No related branches found
No related tags found
1 merge request!8Run time settings and additional adjustments
...@@ -18,6 +18,9 @@ task Star { ...@@ -18,6 +18,9 @@ task Star {
#TODO needs to be extended for all possible output extensions #TODO needs to be extended for all possible output extensions
Map[String, String] samOutputNames = {"BAM SortedByCoordinate": "sortedByCoord.out.bam"} Map[String, String] samOutputNames = {"BAM SortedByCoordinate": "sortedByCoord.out.bam"}
# converts String? to String for use as key (for the Map above) in output
String key = select_first([outSAMtype, "BAM SortedByCoordinate"])
command { command {
set -e -o pipefail set -e -o pipefail
mkdir -p ${sub(outFileNamePrefix, basename(outFileNamePrefix) + "$", "")} mkdir -p ${sub(outFileNamePrefix, basename(outFileNamePrefix) + "$", "")}
...@@ -35,7 +38,7 @@ task Star { ...@@ -35,7 +38,7 @@ task Star {
} }
output { output {
File bamFile = outFileNamePrefix + "Aligned." + samOutputNames["${outSAMtype}"] File bamFile = outFileNamePrefix + "Aligned." + samOutputNames[key]
} }
runtime { 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