Skip to content
Snippets Groups Projects
Commit 2de46d0a authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

new style variable things

parent 758de0e5
No related branches found
No related tags found
1 merge request!34Move all files to version 1.0
...@@ -9,8 +9,8 @@ task installPrefix { ...@@ -9,8 +9,8 @@ task installPrefix {
String prefix String prefix
String? condaPath String? condaPath
} }
command { command <<<
${default="conda" condaPath} create \ ~{default="conda" condaPath} create \
--json -q \ --json -q \
--yes \ --yes \
--override-channels \ --override-channels \
...@@ -19,8 +19,8 @@ task installPrefix { ...@@ -19,8 +19,8 @@ task installPrefix {
--channel defaults \ --channel defaults \
--channel r \ --channel r \
--prefix ${prefix} \ --prefix ${prefix} \
${sep=' ' requirements} ~{sep=' ' requirements}
} >>>
output { output {
File condaEnvPath=prefix File condaEnvPath=prefix
File condaJson=stdout() File condaJson=stdout()
......
...@@ -21,13 +21,13 @@ task BaseCounter { ...@@ -21,13 +21,13 @@ task BaseCounter {
command { command {
set -e -o pipefail set -e -o pipefail
mkdir -p ${outputDir} mkdir -p ~{outputDir}
${preCommand} ~{preCommand}
${toolCommand} \ ~{toolCommand} \
-b ${bam} \ -b ~{bam} \
-r ${refFlat} \ -r ~{refFlat} \
-o ${outputDir} \ -o ~{outputDir} \
-p ${prefix} -p ~{prefix}
} }
output { output {
...@@ -97,17 +97,17 @@ task ExtractAdaptersFastqc { ...@@ -97,17 +97,17 @@ task ExtractAdaptersFastqc {
command { command {
set -e set -e
${preCommand} ~{preCommand}
mkdir -p ${outputDir} mkdir -p ~{outputDir}
${toolCommand} \ ~{toolCommand} \
--inputFile ${inputFile} \ --inputFile ~{inputFile} \
${"--adapterOutputFile " + adapterOutputFilePath } \ ~{"--adapterOutputFile " + adapterOutputFilePath } \
${"--contamsOutputFile " + contamsOutputFilePath } \ ~{"--contamsOutputFile " + contamsOutputFilePath } \
${"--knownContamFile " + knownContamFile} \ ~{"--knownContamFile " + knownContamFile} \
${"--knownAdapterFile " + knownAdapterFile} \ ~{"--knownAdapterFile " + knownAdapterFile} \
${"--adapterCutoff " + adapterCutoff} \ ~{"--adapterCutoff " + adapterCutoff} \
${true="--skipContams" false="" skipContams} \ ~{true="--skipContams" false="" skipContams} \
${true="--outputAsFasta" false="" outputAsFasta} ~{true="--outputAsFasta" false="" outputAsFasta}
} }
output { output {
...@@ -140,14 +140,14 @@ task FastqSplitter { ...@@ -140,14 +140,14 @@ task FastqSplitter {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
mkdir -p $(dirname ${sep=') $(dirname ' outputPaths}) mkdir -p $(dirname ~{sep=') $(dirname ' outputPaths})
if [ ${length(outputPaths)} -gt 1 ]; then if [ ~{length(outputPaths)} -gt 1 ]; then
${toolCommand} \ ~{toolCommand} \
-I ${inputFastq} \ -I ~{inputFastq} \
-o ${sep=' -o ' outputPaths} -o ~{sep=' -o ' outputPaths}
else else
ln -sf ${inputFastq} ${outputPaths[0]} ln -sf ~{inputFastq} ~{outputPaths[0]}
fi fi
} }
...@@ -182,15 +182,15 @@ task FastqSync { ...@@ -182,15 +182,15 @@ task FastqSync {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
mkdir -p $(dirname ${out1path}) $(dirname ${out2path}) mkdir -p $(dirname ~{out1path}) $(dirname ~{out2path})
${toolCommand} \ ~{toolCommand} \
--in1 ${in1} \ --in1 ~{in1} \
--in2 ${in2} \ --in2 ~{in2} \
--ref1 ${ref1} \ --ref1 ~{ref1} \
--ref2 ${ref2} \ --ref2 ~{ref2} \
--out1 ${out1path} \ --out1 ~{out1path} \
--out2 ${out2path} --out2 ~{out2path}
} }
output { output {
...@@ -226,16 +226,16 @@ task SampleConfig { ...@@ -226,16 +226,16 @@ task SampleConfig {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"} mkdir -p . ~{"$(dirname " + jsonOutputPath + ")"} ~{"$(dirname " + tsvOutputPath + ")"}
${toolCommand} \ ~{toolCommand} \
-i ${sep="-i " inputFiles} \ -i ~{sep="-i " inputFiles} \
${"--sample " + sample} \ ~{"--sample " + sample} \
${"--library " + library} \ ~{"--library " + library} \
${"--readgroup " + readgroup} \ ~{"--readgroup " + readgroup} \
${"--jsonOutput " + jsonOutputPath} \ ~{"--jsonOutput " + jsonOutputPath} \
${"--tsvOutput " + tsvOutputPath} \ ~{"--tsvOutput " + tsvOutputPath} \
> ${keyFilePath} > ~{keyFilePath}
} }
output { output {
...@@ -270,13 +270,13 @@ task ScatterRegions { ...@@ -270,13 +270,13 @@ task ScatterRegions {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
mkdir -p ${outputDirPath} mkdir -p ~{outputDirPath}
${toolCommand} \ ~{toolCommand} \
-R ${refFasta} \ -R ~{refFasta} \
-o ${outputDirPath} \ -o ~{outputDirPath} \
${"-s " + scatterSize} \ ~{"-s " + scatterSize} \
${"-L " + regions} ~{"-L " + regions}
} }
output { output {
...@@ -305,11 +305,11 @@ task Seqstat { ...@@ -305,11 +305,11 @@ task Seqstat {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
mkdir -p $(dirname ${outputFile}) mkdir -p $(dirname ~{outputFile})
${toolCommand} \ ~{toolCommand} \
--fastq ${fastq} \ --fastq ~{fastq} \
--output ${outputFile} --output ~{outputFile}
} }
output { output {
...@@ -339,11 +339,11 @@ task ValidateAnnotation { ...@@ -339,11 +339,11 @@ task ValidateAnnotation {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
${toolCommand} \ ~{toolCommand} \
${"-r" + refRefflat} \ ~{"-r" + refRefflat} \
${"-g" + gtfFile} \ ~{"-g" + gtfFile} \
-R ${refFasta} -R ~{refFasta}
} }
output { output {
...@@ -373,10 +373,10 @@ task ValidateFastq { ...@@ -373,10 +373,10 @@ task ValidateFastq {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
${toolCommand}\ ~{toolCommand}\
--fastq1 ${fastq1} \ --fastq1 ~{fastq1} \
${"--fastq2 " + fastq2} ~{"--fastq2 " + fastq2}
} }
output { output {
...@@ -406,10 +406,10 @@ task ValidateVcf { ...@@ -406,10 +406,10 @@ task ValidateVcf {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
${toolCommand}\ ~{toolCommand}\
-i ${vcfFile} \ -i ~{vcfFile} \
-R ${refFasta} -R ~{refFasta}
} }
output { output {
......
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