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
46a74f87
Unverified
Commit
46a74f87
authored
6 years ago
by
Peter van 't Hof
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #64 from biowdl/BIOPET-1080
Added CaseControl tool
parents
4b87b523
64d24abf
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
biopet/sampleconfig.wdl
+40
-0
40 additions, 0 deletions
biopet/sampleconfig.wdl
common.wdl
+7
-0
7 additions, 0 deletions
common.wdl
with
47 additions
and
0 deletions
biopet/sampleconfig.wdl
+
40
−
0
View file @
46a74f87
version 1.0
import "../common.wdl" as common
task SampleConfig {
input {
File? toolJar
...
...
@@ -77,3 +79,41 @@ task SampleConfigCromwellArrays {
memory: ceil(memory * memoryMultiplier)
}
}
task CaseControl {
input {
File? toolJar
String? preCommand
Array[File]+ inputFiles
Array[File]+ sampleConfigs
String outputPath
String controlTag = "control"
Int memory = 4
Float memoryMultiplier = 1.5
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-sampleconfig -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
mkdir -p $(dirname ~{outputPath})
~{toolCommand} CromwellArrays \
-i ~{sep="-i " inputFiles} \
-s ~{sep="-s " sampleConfigs} \
~{"-o " + outputPath} \
~{"--controlTag " + controlTag}
}
output {
File outputFile = outputPath
Array[CaseControl] caseControls = read_json(outputFile)
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
This diff is collapsed.
Click to expand it.
common.wdl
+
7
−
0
View file @
46a74f87
...
...
@@ -163,3 +163,10 @@ struct FastqPair {
File? R2
File? R2_md5
}
struct CaseControl {
String inputName
IndexedBamFile inputBam
String controlName
IndexedBamFile controlBam
}
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