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
7db21a64
Commit
7db21a64
authored
4 years ago
by
van den Berg
Browse files
Options
Downloads
Patches
Plain Diff
Add support for outputPrefix with or without folder
parent
37ba60dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chunked-scatter.wdl
+3
-0
3 additions, 0 deletions
chunked-scatter.wdl
lima.wdl
+10
-0
10 additions, 0 deletions
lima.wdl
with
13 additions
and
0 deletions
chunked-scatter.wdl
+
3
−
0
View file @
7db21a64
...
...
@@ -24,6 +24,7 @@ task ChunkedScatter {
input {
File inputFile
String prefix = "./scatter"
Boolean splitContigs = false
Int? chunkSize
Int? overlap
Int? minimumBasesPerFile
...
...
@@ -40,6 +41,7 @@ task ChunkedScatter {
~{"-c " + chunkSize} \
~{"-o " + overlap} \
~{"-m " + minimumBasesPerFile} \
~{true="--split-contigs " false="" splitContigs} \
~{inputFile}
}
...
...
@@ -108,6 +110,7 @@ task ScatterRegions {
splitContigs: {description: "If set, contigs are allowed to be split up over multiple files.", category: "advanced"}
scatterSizeMillions: {description: "Over how many million base pairs should be scattered.", category: "common"}
scatterSize: {description: "Overrides scatterSizeMillions with a smaller value if set.", category: "advanced"}
splitContigs: {description: "Allow contigs to be split during scattering.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
memory: {description: "The amount of memory this job will use.", category: "advanced"}
...
...
This diff is collapsed.
Click to expand it.
lima.wdl
+
10
−
0
View file @
7db21a64
...
...
@@ -58,6 +58,7 @@ task Lima {
command {
set -e
mkdir -p "$(dirname ~{outputPrefix})"
lima \
~{libraryDesignOptions[libraryDesign]} \
~{true="--score-full-pass" false="" scoreFullPass} \
...
...
@@ -86,6 +87,15 @@ task Lima {
~{inputBamFile} \
~{barcodeFile} \
~{outputPrefix + ".bam"}
# copy the files with the default filename to the folder specified in
# outputPrefix.
if [ "~{basename(outputPrefix)}.json" != "~{outputPrefix}.json" ]; then
cp "~{basename(outputPrefix)}.json" "~{outputPrefix}.json"
cp "~{basename(outputPrefix)}.lima.counts" "~{outputPrefix}.lima.counts"
cp "~{basename(outputPrefix)}.lima.report" "~{outputPrefix}.lima.report"
cp "~{basename(outputPrefix)}.lima.summary" "~{outputPrefix}.lima.summary"
fi
}
output {
...
...
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