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 {
#TODO needs to be extended for all possible output extensions
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 {
set -e -o pipefail
mkdir -p ${sub(outFileNamePrefix, basename(outFileNamePrefix) + "$", "")}
......@@ -35,7 +38,7 @@ task Star {
}
output {
File bamFile = outFileNamePrefix + "Aligned." + samOutputNames["${outSAMtype}"]
File bamFile = outFileNamePrefix + "Aligned." + samOutputNames[key]
}
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