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
0dc72531
Commit
0dc72531
authored
6 years ago
by
Cats
Browse files
Options
Downloads
Patches
Plain Diff
fix somatic tasks and add supporting tasks
parent
c3f2adf6
No related branches found
No related tags found
1 merge request
!43
fix somatic tasks and add supporting tasks
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
gatk.wdl
+2
-1
2 additions, 1 deletion
gatk.wdl
samplesheet.wdl
+4
-2
4 additions, 2 deletions
samplesheet.wdl
samtools.wdl
+35
-0
35 additions, 0 deletions
samtools.wdl
strelka.wdl
+59
-1
59 additions, 1 deletion
strelka.wdl
vardict.wdl
+13
-9
13 additions, 9 deletions
vardict.wdl
with
113 additions
and
13 deletions
gatk.wdl
+
2
−
1
View file @
0dc72531
...
@@ -298,7 +298,7 @@ task MuTect2 {
...
@@ -298,7 +298,7 @@ task MuTect2 {
String? preCommand
String? preCommand
Array[File]+ inputBams
Array[File]+ inputBams
File inputBamIndex
Array[
File
]+
inputBamIndex
File refFasta
File refFasta
File refFastaIndex
File refFastaIndex
File refDict
File refDict
...
@@ -331,6 +331,7 @@ task MuTect2 {
...
@@ -331,6 +331,7 @@ task MuTect2 {
output {
output {
File vcfFile = outputVcf
File vcfFile = outputVcf
File vcfIndex = outputVcf + ".tbi"
}
}
runtime {
runtime {
...
...
This diff is collapsed.
Click to expand it.
samplesheet.wdl
+
4
−
2
View file @
0dc72531
version 1.0
version 1.0
struct Readgroup {
struct Readgroup {
String id
String id
File R1
File R1
...
@@ -15,9 +16,10 @@ struct Library {
...
@@ -15,9 +16,10 @@ struct Library {
struct Sample {
struct Sample {
String id
String id
Array[Library]+ libraries
Array[Library]+ libraries
String? control
}
}
task
s
ampleConfigFileToStruct {
task
S
ampleConfigFileToStruct {
input {
input {
File sampleConfigFile
File sampleConfigFile
String outputJson = "output.json"
String outputJson = "output.json"
...
@@ -69,5 +71,5 @@ task sampleConfigFileToStruct {
...
@@ -69,5 +71,5 @@ task sampleConfigFileToStruct {
output {
output {
Map[String,Array[Sample]] map = read_json(outputJson)
Map[String,Array[Sample]] map = read_json(outputJson)
Array[Sample] samples = map["samples"]
Array[Sample] samples = map["samples"]
}
}
}
}
This diff is collapsed.
Click to expand it.
samtools.wdl
+
35
−
0
View file @
0dc72531
version 1.0
version 1.0
task BgzipAndIndex {
input {
File inputFile
String outputDir
String type = "vcf"
}
String outputGz = outputDir + "/" + basename(inputFile) + ".gz"
command {
bgzip -c ~{inputFile} > ~{outputGz}
tabix ~{outputGz} -p ~{type}
}
output {
File compressed = outputGz
File index = outputGz + ".tbi"
}
}
task Index {
task Index {
input {
input {
String? preCommand
String? preCommand
...
@@ -131,6 +151,21 @@ task Fastq {
...
@@ -131,6 +151,21 @@ task Fastq {
}
}
}
}
task Tabix {
input {
String inputFile
String type = "vcf"
}
command {
tabix ~{inputFile} -p ~{type}
}
output {
File index = inputFile + ".tbi"
}
}
task View {
task View {
input {
input {
String? preCommand
String? preCommand
...
...
This diff is collapsed.
Click to expand it.
strelka.wdl
+
59
−
1
View file @
0dc72531
version 1.0
version 1.0
task Germline {
input {
String? preCommand
String? installDir
String runDir
Array[File]+ bams
Array[File]+ indexes
File refFasta
File? callRegions
File? callRegionsIndex
Boolean exome = false
Boolean rna = false
Int cores = 1
Int memory = 4
}
String toolCommand = if defined(installDir)
then installDir + "bin/configureStrelkaGermlineWorkflow.py"
else "configureStrelkaGermlineWorkflow.py"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
--bam ~{sep=" --bam " bams} \
--ref ~{refFasta} \
--runDir ~{runDir} \
~{"--callRegions" + callRegions} \
~{true="--exome" false="" exome} \
~{true="--rna" false="" rna}
~{runDir}/runWorkflow.py \
-m local \
-J ~{cores} \
-g ~{memory}
}
output {
File variants = runDir + "/results/variants.vcf.gz"
File variantsIndex = runDir + "/results/variants.vcf.gz.tbi"
}
runtime {
cpu: cores
memory: memory
}
}
task Somatic {
task Somatic {
input {
input {
String? preCommand
String? preCommand
String? installDir
String? installDir
String runDir
String runDir
File normalBam
File normalBam
File normalIndex
File tumorBam
File tumorBam
File tumorIndex
File refFasta
File refFasta
File? callRegions
File? callRegionsIndex
Boolean exome = false
Boolean rna = false
Int cores = 1
Int cores = 1
Int memory = 4
Int memory = 4
...
@@ -24,7 +80,9 @@ task Somatic {
...
@@ -24,7 +80,9 @@ task Somatic {
--normalBam ~{normalBam} \
--normalBam ~{normalBam} \
--tumorBam ~{tumorBam} \
--tumorBam ~{tumorBam} \
--ref ~{refFasta} \
--ref ~{refFasta} \
--runDir ~{runDir}
--runDir ~{runDir} \
~{"--callRegions" + callRegions} \
~{true="--exome" false="" exome} \
~{runDir}/runWorkflow.py \
~{runDir}/runWorkflow.py \
-m local \
-m local \
...
...
This diff is collapsed.
Click to expand it.
vardict.wdl
+
13
−
9
View file @
0dc72531
...
@@ -4,12 +4,14 @@ task VarDict {
...
@@ -4,12 +4,14 @@ task VarDict {
input {
input {
String? installDir
String? installDir
String tumorSampleName
File tumorBam
File tumorBam
File normalBam
File tumorIndex
String? normalSampleName
File? normalBam
File? normalIndex
File refFasta
File refFasta
File bedFile
File bedFile
String tumorSampleName
String normalSampleName
String outputVcf
String outputVcf
Int chromosomeColumn = 1
Int chromosomeColumn = 1
...
@@ -30,19 +32,21 @@ task VarDict {
...
@@ -30,19 +32,21 @@ task VarDict {
~{toolCommand} \
~{toolCommand} \
-G ~{refFasta} \
-G ~{refFasta} \
-N ~{tumorSampleName} \
-N ~{tumorSampleName} \
-b "~{tumorBam}
|
~{normalBam}" \
-b "~{tumorBam}~{
"|" +
normalBam}" \
-c ~{chromosomeColumn} \
-c ~{chromosomeColumn} \
-S ~{startColumn} \
-S ~{startColumn} \
-E ~{endColumn} \
-E ~{endColumn} \
-g ~{geneColumn} \
-g ~{geneColumn} \
~{bedFile} | \
~{bedFile} | \
~{installDir + "/"}testsomatic.R | \
~{installDir + "/"}~{true="testsomatic.R" false="teststrandbias.R" defined(normalBam)} | \
~{installDir + "/"}var2vcf_paired.pl \
~{installDir + "/"}~{true="var2vcf_paired.pl"
-N "~{tumorSampleName}|~{normalSampleName}" \
false="var2vcf_valid.pl" defined(normalBam)} \
> ~{outputVcf}
-N "~{tumorSampleName}~{"|" + normalSampleName}" \
~{true="" false="-E" defined(normalBam)} | \
bgzip -c > ~{outputVcf}
}
}
output {
output {
File vcfFile = outputVcf
File vcfFile = outputVcf
}
}
}
}
\ 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