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

add precommand

parent b6b2b73e
No related branches found
No related tags found
1 merge request!6add merge counts
task MergeCounts { task MergeCounts {
String? preCommand
Array[File] inputFiles Array[File] inputFiles
String outputFile String outputFile
String idVar String idVar
...@@ -6,6 +8,8 @@ task MergeCounts { ...@@ -6,6 +8,8 @@ task MergeCounts {
# Based on a script by Szymon Kielbasa/Ioannis Moustakas # Based on a script by Szymon Kielbasa/Ioannis Moustakas
command <<< command <<<
set -e -o pipefail
${preCommand}
R --no-save --slave <<CODE > ${outputFile} R --no-save --slave <<CODE > ${outputFile}
library(dplyr) library(dplyr)
library(reshape2) library(reshape2)
......
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