Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
biowdl
tasks
Commits
ecdac104
Unverified
Commit
ecdac104
authored
6 years ago
by
Cats
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #72 from biowdl/BIOWDL-127
Add CPAT
parents
5febefe7
7f479de3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CPAT.wdl
+39
-0
39 additions, 0 deletions
CPAT.wdl
with
39 additions
and
0 deletions
CPAT.wdl
0 → 100644
+
39
−
0
View file @
ecdac104
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment