Skip to content
Snippets Groups Projects
Unverified Commit 92392999 authored by Jasper's avatar Jasper Committed by GitHub
Browse files

Merge pull request #202 from biowdl/BIOWDL-390

BIOWDL-390: Fix --min-polya-length argument syntax & add workaround…
parents c7acea6d 93c0048e
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ that users understand how the changes affect the new version. ...@@ -10,6 +10,8 @@ that users understand how the changes affect the new version.
--> -->
Version 3.1.0-dev Version 3.1.0-dev
--------------------------- ---------------------------
+ Isoseq3: Add workaround for glob command not locating files in output directory.
+ Isoseq3: Fix --min-polya-length argument syntax.
+ Lima: Add workaround for glob command not locating files in output directory. + Lima: Add workaround for glob command not locating files in output directory.
+ CCS: Add missing backslash. + CCS: Add missing backslash.
+ Cutadapt now explicitly calls the `--compression-level` flag with compression + Cutadapt now explicitly calls the `--compression-level` flag with compression
......
...@@ -34,27 +34,43 @@ task Refine { ...@@ -34,27 +34,43 @@ task Refine {
String dockerImage = "quay.io/biocontainers/isoseq3:3.3.0--0" String dockerImage = "quay.io/biocontainers/isoseq3:3.3.0--0"
} }
command { command <<<
set -e set -e
mkdir -p "$(dirname ~{outputPrefix})" mkdir -p "$(dirname ~{outputPrefix})"
# Create a unique output name base on the input bam file.
bamBasename="$(basename ~{inputBamFile})"
bamNewName="${bamBasename/fl/flnc}"
folderDirname="$(dirname ~{outputPrefix})"
combinedOutput="${folderDirname}/${bamNewName}"
isoseq3 refine \ isoseq3 refine \
--min-poly-length ~{minPolyAlength} \ --min-polya-length ~{minPolyAlength} \
~{true="--require-polya" false="" requirePolyA} \ ~{true="--require-polya" false="" requirePolyA} \
--log-level ~{logLevel} \ --log-level ~{logLevel} \
--num-threads ~{cores} \ --num-threads ~{cores} \
~{"--log-file " + outputPrefix + ".flnc.stderr.log"} \ ~{"--log-file " + outputPrefix + ".flnc.stderr.log"} \
~{inputBamFile} \ ~{inputBamFile} \
~{primerFile} \ ~{primerFile} \
~{outputPrefix + ".flnc.bam"} ${bamNewName}
}
# Copy commands below are needed because glob command does not find
# multiple bam/bam.pbi/consensusreadset.xml/filter_summary.json/report.csv
# files when not located in working directory.
cp "${bamNewName}" "${combinedOutput}"
cp "${bamNewName}.pbi" "${combinedOutput}.pbi"
cp "${bamNewName/bam/consensusreadset}.xml" "${combinedOutput/bam/consensusreadset}.xml"
cp "${bamNewName/bam/filter_summary}.json" "${combinedOutput/bam/filter_summary}.json"
cp "${bamNewName/bam/report}.csv" "${combinedOutput/bam/report}.csv"
>>>
output { output {
File outputFLfile = outputPrefix + ".flnc.bam" Array[File] outputFLNCfile = glob("~{basename(outputPrefix)}*.bam")
File outputFLindexFile = outputPrefix + ".flnc.bam.pbi" Array[File] outputFLNCindexFile = glob("~{basename(outputPrefix)}*.bam.pbi")
Array[File] outputConsensusReadsetFile = glob("~{basename(outputPrefix)}*.consensusreadset.xml")
Array[File] outputFilterSummaryFile = glob("~{basename(outputPrefix)}*.filter_summary.json")
Array[File] outputReportFile = glob("~{basename(outputPrefix)}*.report.csv")
File outputSTDERRfile = outputPrefix + ".flnc.stderr.log" File outputSTDERRfile = outputPrefix + ".flnc.stderr.log"
File outputConsensusReadsetFile = outputPrefix + ".consensusreadset.xml"
File outputFilterSummaryFile = outputPrefix + ".filter_summary.json"
File outputReportFile = outputPrefix + ".report.csv"
} }
runtime { runtime {
...@@ -76,8 +92,8 @@ task Refine { ...@@ -76,8 +92,8 @@ task Refine {
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"} 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"}
# outputs # outputs
outputFLfile: {description: "Filtered reads output file."} outputFLNCfile: {description: "Filtered reads output file."}
outputFLindexFile: {description: "Index of filtered reads output file."} outputFLNCindexFile: {description: "Index of filtered reads output file."}
outputSTDERRfile: {description: "Refine STDERR log file."} outputSTDERRfile: {description: "Refine STDERR log file."}
outputConsensusReadsetFile: {description: "Refine consensus readset XML file."} outputConsensusReadsetFile: {description: "Refine consensus readset XML file."}
outputFilterSummaryFile: {description: "Refine summary file."} outputFilterSummaryFile: {description: "Refine summary file."}
......
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