Skip to content
Snippets Groups Projects
Commit 86f26caf authored by JasperBoom's avatar JasperBoom
Browse files

Update PacBio tasks.

parent d9eedf32
No related branches found
No related tags found
No related merge requests found
......@@ -88,9 +88,12 @@ task Lima {
~{barcodeFile} \
~{outputPrefix + ".bam"}
# copy the files with the default filename to the folder specified in
# Copy the files with the default filename to the folder specified in
# outputPrefix.
if [ "~{basename(outputPrefix)}.json" != "~{outputPrefix}.json" ]; then
if [[ -f "~{outputPrefix}.json" ]]
then
echo "Log files already at output location."
else
cp "~{basename(outputPrefix)}.json" "~{outputPrefix}.json"
cp "~{basename(outputPrefix)}.lima.counts" "~{outputPrefix}.lima.counts"
cp "~{basename(outputPrefix)}.lima.report" "~{outputPrefix}.lima.report"
......
......@@ -23,7 +23,7 @@ version 1.0
task mergePacBio {
input {
Array[File]+ reports
String mergedReport
String outputPathMergedReport
String memory = "4G"
String dockerImage = "lumc/pacbio-merge:0.2"
......@@ -31,10 +31,10 @@ task mergePacBio {
command {
set -e
mkdir -p $(dirname ~{mergedReport})
mkdir -p $(dirname ~{outputPathMergedReport})
pacbio_merge \
--reports ~{sep=" " reports} \
--json-output ~{mergedReport}
--json-output ~{outputPathMergedReport}
}
runtime {
......@@ -43,13 +43,13 @@ task mergePacBio {
}
output {
File outputMergedReport = mergedReport
File outputMergedReport = outputPathMergedReport
}
parameter_meta {
# inputs
reports: {description: "The PacBio report files to merge.", category: "required"}
mergedReport: {description: "The location the merged PacBio report file should be written to.", category: "common"}
outputPathMergedReport: {description: "The location the merged PacBio report file should be written to.", category: "common"}
memory: {description: "The amount of memory this job will use.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
......
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