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

fix glob issue

parent 89ae5c27
No related branches found
No related tags found
1 merge request!17Caching related changes
......@@ -70,26 +70,25 @@ task BaseCounter {
task FastqSplitter {
String? preCommand
File inputFastq
String outputPath
Int numberChunks
String tool_jar
Array[Int] chunks = range(numberChunks)
Array[String] outputPaths
String toolJar
command {
set -e -o pipefail
${preCommand}
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)}
else
ln -sf ${inputFastq} ${outputPath}/chunk_0/${basename(inputFastq)}
fi
for
mkdir -p $(dirname ${sep=') $(dirname ' outputPaths})
if [ ${length(outputPaths)} -gt 1 ]; then
java -jar ${toolJar} \
-I ${inputFastq} \
-o ${sep=' -o ' outputPaths}
else
ln -sf ${inputFastq} ${outputPaths[0]}
fi
}
output {
Array[File] chunkDirs = prefix(outputPath + "/chunk_", chunks)
String filename = basename(inputFastq)
Array[File] chunks = outputPaths
}
}
......
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