Skip to content
Snippets Groups Projects
Commit 7e142153 authored by Cats's avatar Cats
Browse files

stdout to file

parent 2aff5d1d
No related branches found
No related tags found
1 merge request!14add limitBAMsortRAM to STAR and make sampleConfig write to file
...@@ -60,6 +60,7 @@ task SampleConfig { ...@@ -60,6 +60,7 @@ task SampleConfig {
String? preCommand String? preCommand
String tool_jar String tool_jar
Array[File]+ inputFiles Array[File]+ inputFiles
String stdoutFile
String? sample String? sample
String? library String? library
String? readgroup String? readgroup
...@@ -80,14 +81,14 @@ task SampleConfig { ...@@ -80,14 +81,14 @@ task SampleConfig {
${"--library " + library} \ ${"--library " + library} \
${"--readgroup " + readgroup} \ ${"--readgroup " + readgroup} \
${"--jsonOutput " + jsonOutputPath} \ ${"--jsonOutput " + jsonOutputPath} \
${"--tsvOutput " + tsvOutputPath} ${"--tsvOutput " + tsvOutputPath} \
> ${stdoutFile}
} }
output { output {
Array[String] keys = read_lines(stdout()) File keysFile = stdoutFile
File? jsonOutput = jsonOutputPath File? jsonOutput = jsonOutputPath
File? tsvOutput = tsvOutputPath File? tsvOutput = tsvOutputPath
Object values = if (defined(tsvOutput) && size(tsvOutput) > 0) then read_map(tsvOutput) else { "": "" }
} }
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