Skip to content
Snippets Groups Projects
Commit fc01ad36 authored by Pappas's avatar Pappas
Browse files

Various style fixes

parent d8fd7569
No related branches found
No related tags found
1 merge request!16Centrifuge related changes
......@@ -12,8 +12,8 @@ task BaseCounter {
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 12.0]))
command {
set -e -o pipefail
mkdir -p ${outputDir}
......@@ -72,7 +72,7 @@ task FastqSplitter {
File inputFastq
String outputPath
Int numberChunks
String tool_jar
File toolJar
Array[Int] chunks = range(numberChunks)
command {
......@@ -81,7 +81,7 @@ task FastqSplitter {
mkdir -p ${sep=' ' prefix(outputPath + "/chunk_", chunks)}
if [ ${numberChunks} -gt 1 ]; then
SEP="/${basename(inputFastq)} -o "
java -jar ${tool_jar} -I ${inputFastq} -o ${sep='$SEP' prefix(outputPath + "/chunk_", chunks)}/${basename(inputFastq)}
java -jar ${toolJar} -I ${inputFastq} -o ${sep='$SEP' prefix(outputPath + "/chunk_", chunks)}/${basename(inputFastq)}
else
ln -sf ${inputFastq} ${outputPath}/chunk_0/${basename(inputFastq)}
fi
......@@ -100,12 +100,13 @@ task FastqSync {
File in2
String out1path
String out2path
File tool_jar
File toolJar
command {
set -e -o pipefail
${preCommand}
mkdir -p $(dirname ${out1path}) $(dirname ${out2path})
java -jar ${tool_jar} \
java -jar ${toolJar} \
--in1 ${in1} \
--in2 ${in2} \
--ref1 ${ref1} \
......@@ -113,6 +114,7 @@ task FastqSync {
--out1 ${out1path} \
--out2 ${out2path}
}
output {
File out1 = out1path
File out2 = out2path
......@@ -121,7 +123,7 @@ task FastqSync {
task SampleConfig {
String? preCommand
String tool_jar
File toolJar
Array[File]+ inputFiles
String keyFilePath
String? sample
......@@ -132,13 +134,13 @@ task SampleConfig {
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0]))
command {
set -e -o pipefail
${preCommand}
mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"}
java -Xmx${mem}G -jar ${tool_jar} \
java -Xmx${mem}G -jar ${toolJar} \
-i ${sep="-i " inputFiles} \
${"--sample " + sample} \
${"--library " + library} \
......@@ -161,23 +163,23 @@ task SampleConfig {
task ScatterRegions {
String? preCommand
File ref_fasta
File ref_dict
File refFasta
File refDict
String outputDirPath
String tool_jar
File toolJar
Int? scatterSize
File? regions
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0]))
command {
set -e -o pipefail
${preCommand}
mkdir -p ${outputDirPath}
java -Xmx${mem}G -jar ${tool_jar} \
-R ${ref_fasta} \
java -Xmx${mem}G -jar ${toolJar} \
-R ${refFasta} \
-o ${outputDirPath} \
${"-s " + scatterSize} \
${"-L " + regions}
......
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