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
6460f924
Unverified
Commit
6460f924
authored
6 years ago
by
Ruben Vorderman
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into BIOWDL-68
parents
9b7c5ff9
3d914428
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!47
Fix fastqc and cutadapt for use with WDL 1.0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
gatk.wdl
+1
-1
1 addition, 1 deletion
gatk.wdl
manta.wdl
+18
-6
18 additions, 6 deletions
manta.wdl
picard.wdl
+6
-4
6 additions, 4 deletions
picard.wdl
strelka.wdl
+26
-25
26 additions, 25 deletions
strelka.wdl
vardict.wdl
+9
-1
9 additions, 1 deletion
vardict.wdl
with
60 additions
and
37 deletions
gatk.wdl
+
1
−
1
View file @
6460f924
...
@@ -373,7 +373,7 @@ task SplitNCigarReads {
...
@@ -373,7 +373,7 @@ task SplitNCigarReads {
output {
output {
File bam = outputBam
File bam = outputBam
File bamIndex = sub(outputBam, "\
\
.bam$", ".bai")
File bamIndex = sub(outputBam, "\.bam$", ".bai")
}
}
runtime {
runtime {
...
...
This diff is collapsed.
Click to expand it.
manta.wdl
+
18
−
6
View file @
6460f924
version 1.0
version 1.0
task Somatic {
task
Configure
Somatic {
input {
input {
File tumorBam
File tumorBam
File tumorIndex
File tumorIndex
...
@@ -14,9 +14,6 @@ task Somatic {
...
@@ -14,9 +14,6 @@ task Somatic {
Boolean exome = false
Boolean exome = false
String? preCommand
String? preCommand
String? installDir
String? installDir
Int cores = 1
Int memory = 4
}
}
String toolCommand = if defined(installDir)
String toolCommand = if defined(installDir)
...
@@ -33,7 +30,22 @@ task Somatic {
...
@@ -33,7 +30,22 @@ task Somatic {
~{"--callRegions " + callRegions} \
~{"--callRegions " + callRegions} \
--runDir ~{runDir} \
--runDir ~{runDir} \
~{true="--exome" false="" exome}
~{true="--exome" false="" exome}
}
output {
String runDirectory = runDir
}
}
task RunSomatic {
input {
String runDir
Int cores = 1
Int memory = 4
Boolean paired = true
}
command {
~{runDir}/runWorkflow.py \
~{runDir}/runWorkflow.py \
-m local \
-m local \
-j ~{cores} \
-j ~{cores} \
...
@@ -46,10 +58,10 @@ task Somatic {
...
@@ -46,10 +58,10 @@ task Somatic {
"/results/variants/candidateSmallIndels.vcf.gz.tbi"
"/results/variants/candidateSmallIndels.vcf.gz.tbi"
File candidateSV = runDir + "/results/variants/candidateSV.vcf.gz"
File candidateSV = runDir + "/results/variants/candidateSV.vcf.gz"
File candidateSVindex = runDir + "/results/variants/candidateSV.vcf.gz.tbi"
File candidateSVindex = runDir + "/results/variants/candidateSV.vcf.gz.tbi"
File tumorSV = if
defined(normalBam)
File tumorSV = if
paired
then runDir + "/results/variants/somaticSV.vcf.gz"
then runDir + "/results/variants/somaticSV.vcf.gz"
else runDir + "/results/variants/tumorSV.vcf.gz"
else runDir + "/results/variants/tumorSV.vcf.gz"
File tumorSVindex = if
defined(normalBam)
File tumorSVindex = if
paired
then runDir + "/results/variants/somaticSV.vcf.gz.tbi"
then runDir + "/results/variants/somaticSV.vcf.gz.tbi"
else runDir + "/results/variants/tumorSV.vcf.gz.tbi"
else runDir + "/results/variants/tumorSV.vcf.gz.tbi"
File? diploidSV = "/results/variants/diploidSV.vcf.gz"
File? diploidSV = "/results/variants/diploidSV.vcf.gz"
...
...
This diff is collapsed.
Click to expand it.
picard.wdl
+
6
−
4
View file @
6460f924
...
@@ -61,8 +61,8 @@ task CollectMultipleMetrics {
...
@@ -61,8 +61,8 @@ task CollectMultipleMetrics {
File gcBiasDetail = basename + ".gc_bias.detail_metrics"
File gcBiasDetail = basename + ".gc_bias.detail_metrics"
File gcBiasPdf = basename + ".gc_bias.pdf"
File gcBiasPdf = basename + ".gc_bias.pdf"
File gcBiasSummary = basename + ".gc_bias.summary_metrics"
File gcBiasSummary = basename + ".gc_bias.summary_metrics"
File insertSizeHistogramPdf = basename + ".insert_size_histogram.pdf"
File
?
insertSizeHistogramPdf = basename + ".insert_size_histogram.pdf"
File insertSize = basename + ".insert_size_metrics"
File
?
insertSize = basename + ".insert_size_metrics"
File preAdapterDetail = basename + ".pre_adapter_detail_metrics"
File preAdapterDetail = basename + ".pre_adapter_detail_metrics"
File preAdapterSummary = basename + ".pre_adapter_summary_metrics"
File preAdapterSummary = basename + ".pre_adapter_summary_metrics"
File qualityByCycle = basename + ".quality_by_cycle_metrics"
File qualityByCycle = basename + ".quality_by_cycle_metrics"
...
@@ -110,7 +110,7 @@ task CollectRnaSeqMetrics {
...
@@ -110,7 +110,7 @@ task CollectRnaSeqMetrics {
}
}
output {
output {
File chart = basename + ".RNA_Metrics.pdf"
File
?
chart = basename + ".RNA_Metrics.pdf"
File metrics = basename + ".RNA_Metrics"
File metrics = basename + ".RNA_Metrics"
}
}
...
@@ -386,6 +386,7 @@ task SortVcf {
...
@@ -386,6 +386,7 @@ task SortVcf {
Array[File]+ vcfFiles
Array[File]+ vcfFiles
String outputVcf
String outputVcf
File? sequenceDict
Int memory = 4
Int memory = 4
Float memoryMultiplier = 3.0
Float memoryMultiplier = 3.0
...
@@ -401,7 +402,8 @@ task SortVcf {
...
@@ -401,7 +402,8 @@ task SortVcf {
~{toolCommand} \
~{toolCommand} \
SortVcf \
SortVcf \
I=~{sep=" I=" vcfFiles} \
I=~{sep=" I=" vcfFiles} \
O=outputVcf
~{"SEQUENCE_DICTIONARY=" + sequenceDict} \
O=~{outputVcf}
}
}
output {
output {
...
...
This diff is collapsed.
Click to expand it.
strelka.wdl
+
26
−
25
View file @
6460f924
version 1.0
version 1.0
task Germline {
task
Configure
Germline {
input {
input {
String? preCommand
String? preCommand
String? installDir
String? installDir
...
@@ -13,9 +13,6 @@ task Germline {
...
@@ -13,9 +13,6 @@ task Germline {
File? callRegionsIndex
File? callRegionsIndex
Boolean exome = false
Boolean exome = false
Boolean rna = false
Boolean rna = false
Int cores = 1
Int memory = 4
}
}
String toolCommand = if defined(installDir)
String toolCommand = if defined(installDir)
...
@@ -32,26 +29,14 @@ task Germline {
...
@@ -32,26 +29,14 @@ task Germline {
~{"--callRegions " + callRegions} \
~{"--callRegions " + callRegions} \
~{true="--exome" false="" exome} \
~{true="--exome" false="" exome} \
~{true="--rna" false="" rna}
~{true="--rna" false="" rna}
~{runDir}/runWorkflow.py \
-m local \
-j ~{cores} \
-g ~{memory}
}
}
output {
output {
File variants = runDir + "/results/variants/variants.vcf.gz"
String runDirectory = runDir
File variantsIndex = runDir + "/results/variants/variants.vcf.gz.tbi"
}
runtime {
cpu: cores
memory: memory
}
}
}
}
task ConfigureSomatic {
task Somatic {
input {
input {
String? preCommand
String? preCommand
String? installDir
String? installDir
...
@@ -67,9 +52,6 @@ task Somatic {
...
@@ -67,9 +52,6 @@ task Somatic {
File? indelCandidates
File? indelCandidates
File? indelCandidatesIndex
File? indelCandidatesIndex
Boolean exome = false
Boolean exome = false
Int cores = 1
Int memory = 4
}
}
String toolCommand = if defined(installDir)
String toolCommand = if defined(installDir)
...
@@ -87,7 +69,22 @@ task Somatic {
...
@@ -87,7 +69,22 @@ task Somatic {
~{"--callRegions " + callRegions} \
~{"--callRegions " + callRegions} \
~{"--indelCandidates " + indelCandidates} \
~{"--indelCandidates " + indelCandidates} \
~{true="--exome" false="" exome} \
~{true="--exome" false="" exome} \
}
output {
String runDirectory = runDir
}
}
task Run {
input {
String runDir
Int cores = 1
Int memory = 4
Boolean somatic = true
}
command {
~{runDir}/runWorkflow.py \
~{runDir}/runWorkflow.py \
-m local \
-m local \
-j ~{cores} \
-j ~{cores} \
...
@@ -95,10 +92,14 @@ task Somatic {
...
@@ -95,10 +92,14 @@ task Somatic {
}
}
output {
output {
File indelsVcf = runDir + "/results/variants/somatic.indels.vcf.gz"
File? indelsVcf = runDir + "/results/variants/somatic.indels.vcf.gz"
File indelsIndex = runDir + "/results/variants/somatic.indels.vcf.gz.tbi"
File? indelsIndex = runDir + "/results/variants/somatic.indels.vcf.gz.tbi"
File snvVcf = runDir + "/results/variants/somatic.snvs.vcf.gz"
File variants = if somatic
File snvIndex = runDir + "/results/variants/somatic.snvs.vcf.gz.tbi"
then runDir + "/results/variants/somatic.snvs.vcf.gz"
else runDir + "/results/variants/variants.vcf.gz"
File variantsIndex = if somatic
then runDir + "/results/variants/somatic.snvs.vcf.gz.tbi"
else runDir + "/results/variants/variants.vcf.gz.tbi"
}
}
runtime {
runtime {
...
...
This diff is collapsed.
Click to expand it.
vardict.wdl
+
9
−
1
View file @
6460f924
...
@@ -22,21 +22,25 @@ task VarDict {
...
@@ -22,21 +22,25 @@ task VarDict {
Int geneColumn = 4
Int geneColumn = 4
String? preCommand
String? preCommand
Int memory = 8
Float memoryMultiplier = 2.0
}
}
String toolCommand = if defined(installDir)
String toolCommand = if defined(installDir)
then installDir + "/VarDict"
then installDir + "/VarDict"
else if useJavaVersion
else if useJavaVersion
then "vardict-java"
#probably needs memory stuff
then "vardict-java"
else "vardict"
else "vardict"
command {
command {
set -e -o pipefail
set -e -o pipefail
export JAVA_OPTS="-Xmx~{memory}G"
~{preCommand}
~{preCommand}
~{toolCommand} \
~{toolCommand} \
-G ~{refFasta} \
-G ~{refFasta} \
-N ~{tumorSampleName} \
-N ~{tumorSampleName} \
-b "~{tumorBam}~{"|" + normalBam}" \
-b "~{tumorBam}~{"|" + normalBam}" \
~{true="" false="-z" defined(normalBam)} \
-c ~{chromosomeColumn} \
-c ~{chromosomeColumn} \
-S ~{startColumn} \
-S ~{startColumn} \
-E ~{endColumn} \
-E ~{endColumn} \
...
@@ -53,4 +57,8 @@ task VarDict {
...
@@ -53,4 +57,8 @@ task VarDict {
output {
output {
File vcfFile = outputVcf
File vcfFile = outputVcf
}
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
}
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