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

Merge pull request #72 from biowdl/BIOWDL-127

Add CPAT
parents 5febefe7 7f479de3
No related branches found
No related tags found
No related merge requests found
CPAT.wdl 0 → 100644
version 1.0
task CPAT {
input {
String? preCommand
File gene
String outFilePath
String hex
String logitModel
File? referenceGenome
File? referenceGenomeIndex # Should be added as input if
# CPAT should not index the reference genome.
Array[String]? startCodons
Array[String]? stopCodons
}
# Some WDL magic in the command section to properly output the start and stopcodons to the command.
# select_first is needed in order to convert the optional arrays to non-optionals.
command {
set -e -o pipefail
mkdir -p $(dirname ~{outFilePath})
~{preCommand}
cpat.py \
--gene ~{gene} \
--outfile ~{outFilePath} \
--hex ~{hex} \
--logitModel ~{logitModel} \
~{"--ref " + referenceGenome} \
~{true="--start" false="" defined(startCodons)} ~{sep="," select_first([startCodons, [""]])} \
~{true="--stop" false="" defined(stopCodons)} ~{sep="," select_first([stopCodons, [""]])}
}
output {
File outFile=outFilePath
}
}
# There is also make_hexamer_tab.py and make_logitModel.py
# that can be added as tasks here.
\ No newline at end of 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