Skip to content
Snippets Groups Projects
Commit 6356c481 authored by JasperBoom's avatar JasperBoom
Browse files

Fix outputs in ccs.

parent e9896daa
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ that users understand how the changes affect the new version. ...@@ -10,6 +10,7 @@ that users understand how the changes affect the new version.
version 5.0.0-dev version 5.0.0-dev
--------------------------- ---------------------------
+ Fix output files in ccs.wdl.
+ Add memory values to GffCompare, GffRead and CPAT. + Add memory values to GffCompare, GffRead and CPAT.
+ GffCompare: Make the `referenceAnnotation` input optional. + GffCompare: Make the `referenceAnnotation` input optional.
+ Stringtie: Add the `minimumCoverage` input. + Stringtie: Add the `minimumCoverage` input.
......
...@@ -24,12 +24,19 @@ task CCS { ...@@ -24,12 +24,19 @@ task CCS {
input { input {
File subreadsFile File subreadsFile
String outputPrefix String outputPrefix
String logLevel = "WARN"
Int minPasses = 3 Int minPasses = 3
Int topPasses = 60
Int minLength = 10 Int minLength = 10
Int maxLength = 50000 Int maxLength = 50000
Boolean byStrand = false Boolean byStrand = false
Boolean skipPolish = false
Boolean all = false
Boolean subreadFallback = false
Boolean allKinetics = false
Boolean hifiKinetics = false
Float minSnr = 2.5
Float minReadQuality = 0.99 Float minReadQuality = 0.99
String logLevel = "WARN"
File? subreadsIndexFile File? subreadsIndexFile
String? chunkString String? chunkString
...@@ -37,7 +44,7 @@ task CCS { ...@@ -37,7 +44,7 @@ task CCS {
Int threads = 2 Int threads = 2
String memory = "4G" String memory = "4G"
Int timeMinutes = 1440 Int timeMinutes = 1440
String dockerImage = "quay.io/biocontainers/pbccs:5.0.0--0" String dockerImage = "quay.io/biocontainers/pbccs:6.0.0--h9ee0642_2"
} }
command { command {
...@@ -45,15 +52,24 @@ task CCS { ...@@ -45,15 +52,24 @@ task CCS {
mkdir -p "$(dirname ~{outputPrefix})" mkdir -p "$(dirname ~{outputPrefix})"
ccs \ ccs \
--min-passes ~{minPasses} \ --min-passes ~{minPasses} \
--min-snr ~{minSnr} \
--top-passes ~{topPasses} \
--min-length ~{minLength} \ --min-length ~{minLength} \
--max-length ~{maxLength} \ --max-length ~{maxLength} \
~{true="--by-strand" false="" byStrand} \ ~{true="--by-strand" false="" byStrand} \
~{true="--skip-polish" false="" skipPolish} \
~{true="--all" false="" all} \
~{true="--subread-fallback" false="" subreadFallback} \
~{true="--all-kinetics" false="" allKinetics} \
~{true="--hifi-kinetics" false="" hifiKinetics} \
--min-rq ~{minReadQuality} \ --min-rq ~{minReadQuality} \
--log-level ~{logLevel} \ --log-level ~{logLevel} \
--num-threads ~{threads} \ --num-threads ~{threads} \
~{"--chunk " + chunkString} \ ~{"--chunk " + chunkString} \
~{"--report-file " + outputPrefix + ".ccs_report.txt"} \
~{"--report-json " + outputPrefix + ".ccs.report.json"} \ ~{"--report-json " + outputPrefix + ".ccs.report.json"} \
~{"--log-file " + outputPrefix + ".ccs.stderr.log"} \ ~{"--log-file " + outputPrefix + ".ccs.stderr.log"} \
~{"--metrics-json " + outputPrefix + ".zmw_metrics.json.gz"} \
~{subreadsFile} \ ~{subreadsFile} \
~{outputPrefix + ".ccs.bam"} ~{outputPrefix + ".ccs.bam"}
} }
...@@ -61,8 +77,10 @@ task CCS { ...@@ -61,8 +77,10 @@ task CCS {
output { output {
File ccsBam = outputPrefix + ".ccs.bam" File ccsBam = outputPrefix + ".ccs.bam"
File ccsBamIndex = outputPrefix + ".ccs.bam.pbi" File ccsBamIndex = outputPrefix + ".ccs.bam.pbi"
File ccsReport = outputPrefix + ".ccs.report.json" File ccsReport = outputPrefix + ".ccs_report.txt"
File ccsJsonReport = outputPrefix + ".ccs.report.json"
File ccsStderr = outputPrefix + ".ccs.stderr.log" File ccsStderr = outputPrefix + ".ccs.stderr.log"
File zmwMetrics = outputPrefix + ".zmw_metrics.json.gz"
} }
runtime { runtime {
...@@ -76,12 +94,19 @@ task CCS { ...@@ -76,12 +94,19 @@ task CCS {
# inputs # inputs
subreadsFile: {description: "Subreads input file.", category: "required"} subreadsFile: {description: "Subreads input file.", category: "required"}
outputPrefix: {description: "Output directory path + output file prefix.", category: "required"} outputPrefix: {description: "Output directory path + output file prefix.", category: "required"}
logLevel: {description: "Set log level. Valid choices: (TRACE, DEBUG, INFO, WARN, FATAL).", category: "advanced"}
minPasses: {description: "Minimum number of full-length subreads required to generate ccs for a ZMW.", category: "advanced"} minPasses: {description: "Minimum number of full-length subreads required to generate ccs for a ZMW.", category: "advanced"}
topPasses: {description: "Pick at maximum the top N passes for each ZMW.", category: "advanced"}
minLength: {description: "Minimum draft length before polishing.", category: "advanced"} minLength: {description: "Minimum draft length before polishing.", category: "advanced"}
maxLength: {description: "Maximum draft length before polishing.", category: "advanced"} maxLength: {description: "Maximum draft length before polishing.", category: "advanced"}
byStrand: {description: "Generate a consensus for each strand.", category: "advanced"} byStrand: {description: "Generate a consensus for each strand.", category: "advanced"}
skipPolish: {description: "Only output the initial draft template (faster, less accurate).", category: "advanced"}
all: {description: "Emit all ZMWs.", category: "advanced"}
subreadFallback: {description: "Emit a representative subread, instead of the draft consensus, if polishing failed.", category: "advanced"}
allKinetics: {description: "Calculate mean pulse widths (PW) and interpulse durations (IPD) for every ZMW.", category: "advanced"}
hifiKinetics: {description: "Calculate mean pulse widths (PW) and interpulse durations (IPD) for every HiFi read.", category: "advanced"}
minSnr: {description: "Minimum SNR of subreads to use for generating CCS.", category: "advanced"}
minReadQuality: {description: "Minimum predicted accuracy in [0, 1].", category: "common"} minReadQuality: {description: "Minimum predicted accuracy in [0, 1].", category: "common"}
logLevel: {description: "Set log level. Valid choices: (TRACE, DEBUG, INFO, WARN, FATAL).", category: "advanced"}
subreadsIndexFile: {description: "Index for the subreads input file, required when using chunkString.", category: "advanced"} subreadsIndexFile: {description: "Index for the subreads input file, required when using chunkString.", category: "advanced"}
chunkString: {descpription: "Chunk string (e.g. 1/4, 5/5) for CCS.", category: "advanced"} chunkString: {descpription: "Chunk string (e.g. 1/4, 5/5) for CCS.", category: "advanced"}
threads: {description: "The number of threads to be used.", category: "advanced"} threads: {description: "The number of threads to be used.", category: "advanced"}
...@@ -92,7 +117,9 @@ task CCS { ...@@ -92,7 +117,9 @@ task CCS {
# outputs # outputs
ccsBam: {description: "Consensus reads output file."} ccsBam: {description: "Consensus reads output file."}
ccsBamIndex: {description: "Index of consensus reads output file."} ccsBamIndex: {description: "Index of consensus reads output file."}
ccsReport: {description: "Ccs results report file."} ccsReport: {description: "Ccs report file."}
ccsJsonReport: {description: "Ccs results json report file."}
ccsStderr: {description: "Ccs STDERR log file."} ccsStderr: {description: "Ccs STDERR log file."}
zmwMetrics: {description: "ZMW metrics json file."}
} }
} }
Subproject commit 85e2ec542b65be5f2a25c22db05c28700fbe6db5 Subproject commit c31670d3a9222a2feafc649cbc118c95afbc7189
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