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
6941feb1
Commit
6941feb1
authored
6 years ago
by
Moustakas
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/develop' into controlTreat
parents
282dacb0
46a74f87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!67
fix CaseControl and macs2 tasks
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
biopet/sampleconfig.wdl
+40
-0
40 additions, 0 deletions
biopet/sampleconfig.wdl
common.wdl
+7
-0
7 additions, 0 deletions
common.wdl
gatk.wdl
+6
-12
6 additions, 12 deletions
gatk.wdl
with
53 additions
and
12 deletions
biopet/sampleconfig.wdl
+
40
−
0
View file @
6941feb1
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 @
6941feb1
...
...
@@ -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.
gatk.wdl
+
6
−
12
View file @
6941feb1
...
...
@@ -123,18 +123,12 @@ task CombineGVCFs {
command {
set -e -o pipefail
~{preCommand}
if [ ~{length(gvcfFiles)} -gt 1 ]; then
~{toolCommand} \
CombineGVCFs \
-R ~{reference.fasta} \
-O ~{outputPath} \
-V ~{sep=' -V ' gvcfFiles} \
-L ~{sep=' -L ' intervals}
else # TODO this should be handeled in wdl
ln -sf ~{gvcfFiles[0]} ~{outputPath}
ln -sf ~{gvcfFiles[0]} ~{outputPath}.tbi
fi
~{toolCommand} \
CombineGVCFs \
-R ~{reference.fasta} \
-O ~{outputPath} \
-V ~{sep=' -V ' gvcfFiles} \
-L ~{sep=' -L ' intervals}
}
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