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
af4ccc1c
Unverified
Commit
af4ccc1c
authored
6 years ago
by
Cats
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #74 from biowdl/BIOWDL-78
add SomaticSeq
parents
2b0c491d
8eda5fed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
manta.wdl
+3
-0
3 additions, 0 deletions
manta.wdl
picard.wdl
+2
-2
2 additions, 2 deletions
picard.wdl
somaticseq.wdl
+257
-0
257 additions, 0 deletions
somaticseq.wdl
strelka.wdl
+3
-0
3 additions, 0 deletions
strelka.wdl
with
265 additions
and
2 deletions
manta.wdl
+
3
−
0
View file @
af4ccc1c
...
...
@@ -40,6 +40,7 @@ task ConfigureSomatic {
task RunSomatic {
input {
String? preCommand
String runDir
Int cores = 1
Int memory = 4
...
...
@@ -47,6 +48,8 @@ task RunSomatic {
}
command {
set -e -o pipefail
~{preCommand}
~{runDir}/runWorkflow.py \
-m local \
-j ~{cores} \
...
...
This diff is collapsed.
Click to expand it.
picard.wdl
+
2
−
2
View file @
af4ccc1c
...
...
@@ -337,8 +337,8 @@ task MarkDuplicates {
task MergeVCFs {
input {
String? preCommand
Array[File] inputVCFs
Array[File] inputVCFsIndexes
Array[File]
+
inputVCFs
Array[File]
+
inputVCFsIndexes
String outputVcfPath
Int? compressionLevel
String? picardJar
...
...
This diff is collapsed.
Click to expand it.
somaticseq.wdl
0 → 100644
+
257
−
0
View file @
af4ccc1c
version 1.0
import "common.wdl" as common
task ParallelPaired {
input {
String installDir = "/opt/somaticseq" #the location in the docker image
File? classifierSNV
File? classifierIndel
String outputDir
Reference reference
File? inclusionRegion
File? exclusionRegion
IndexedBamFile tumorBam
IndexedBamFile normalBam
File? mutect2VCF
File? varscanSNV
File? varscanIndel
File? jsmVCF
File? somaticsniperVCF
File? vardictVCF
File? museVCF
File? lofreqSNV
File? lofreqIndel
File? scalpelVCF
File? strelkaSNV
File? strelkaIndel
Int threads = 1
}
command {
~{installDir}/somaticseq_parallel.py \
~{"--classifier-snv " + classifierSNV} \
~{"--classifier-indel " + classifierIndel} \
--output-directory ~{outputDir} \
--genome-reference ~{reference.fasta} \
~{"--inclusion-region " + inclusionRegion} \
~{"--exclusion-region " + exclusionRegion} \
--threads ~{threads} \
paired \
--tumor-bam-file ~{tumorBam.file} \
--normal-bam-file ~{normalBam.file} \
~{"--mutect2-vcf " + mutect2VCF} \
~{"--varscan-snv " + varscanSNV} \
~{"--varscan-indel " + varscanIndel} \
~{"--jsm-vcf " + jsmVCF} \
~{"--somaticsniper-vcf " + somaticsniperVCF} \
~{"--vardict-vcf " + vardictVCF} \
~{"--muse-vcf " + museVCF} \
~{"--lofreq-snv " + lofreqSNV} \
~{"--lofreq-indel " + lofreqIndel} \
~{"--scalpel-vcf " + scalpelVCF} \
~{"--strelka-snv " + strelkaSNV} \
~{"--strelka-indel " + strelkaIndel}
}
output {
File indels = outputDir + if defined(classifierIndel)
then "/SSeq.Classified.sINDEL.vcf"
else "/Consensus.sINDEL.vcf"
File snvs = outputDir + if defined(classifierSNV)
then "/SSeq.Classified.sSNV.vcf"
else "/Consensus.sSNV.vcf"
File ensembleIndels = outputDir + "/Ensemble.sINDEL.tsv"
File ensembleSNV = outputDir + "/Ensemble.sSNV.tsv"
}
runtime {
cpu: threads
docker: "lethalfang/somaticseq:3.1.0"
}
}
task ParallelPairedTrain {
input {
String installDir = "/opt/somaticseq" #the location in the docker image
File truthSNV
File truthIndel
String outputDir
Reference reference
File? inclusionRegion
File? exclusionRegion
IndexedBamFile tumorBam
IndexedBamFile normalBam
File? mutect2VCF
File? varscanSNV
File? varscanIndel
File? jsmVCF
File? somaticsniperVCF
File? vardictVCF
File? museVCF
File? lofreqSNV
File? lofreqIndel
File? scalpelVCF
File? strelkaSNV
File? strelkaIndel
Int threads = 1
}
command {
~{installDir}/somaticseq_parallel.py \
--somaticseq-train \
--truth-snv ~{truthSNV} \
--truth-indel ~{truthIndel} \
--output-directory ~{outputDir} \
--genome-reference ~{reference.fasta} \
~{"--inclusion-region " + inclusionRegion} \
~{"--exclusion-region " + exclusionRegion} \
--threads ~{threads} \
paired \
--tumor-bam-file ~{tumorBam.file} \
--normal-bam-file ~{normalBam.file} \
~{"--mutect2-vcf " + mutect2VCF} \
~{"--varscan-snv " + varscanSNV} \
~{"--varscan-indel " + varscanIndel} \
~{"--jsm-vcf " + jsmVCF} \
~{"--somaticsniper-vcf " + somaticsniperVCF} \
~{"--vardict-vcf " + vardictVCF} \
~{"--muse-vcf " + museVCF} \
~{"--lofreq-snv " + lofreqSNV} \
~{"--lofreq-indel " + lofreqIndel} \
~{"--scalpel-vcf " + scalpelVCF} \
~{"--strelka-snv " + strelkaSNV} \
~{"--strelka-indel " + strelkaIndel}
}
output {
File consensusIndels = outputDir + "/Consensus.sINDEL.vcf"
File consensusSNV = outputDir + "/Consensus.sSNV.vcf"
File ensembleIndels = outputDir + "/Ensemble.sINDEL.tsv"
File ensembleSNV = outputDir + "/Ensemble.sSNV.tsv"
File ensembleIndelsClassifier = outputDir + "/Ensemble.sINDEL.tsv.ntChange.Classifier.RData"
File ensembleSNVClassifier = outputDir + "/Ensemble.sSNV.tsv.ntChange.Classifier.RData"
}
runtime {
cpu: threads
docker: "lethalfang/somaticseq:3.1.0"
}
}
task ParallelSingle {
input {
String installDir = "/opt/somaticseq" #the location in the docker image
File? classifierSNV
File? classifierIndel
String outputDir
Reference reference
File? inclusionRegion
File? exclusionRegion
IndexedBamFile bam
File? mutect2VCF
File? varscanVCF
File? vardictVCF
File? lofreqVCF
File? scalpelVCF
File? strelkaVCF
Int threads = 1
}
command {
~{installDir}/somaticseq_parallel.py \
~{"--classifier-snv " + classifierSNV} \
~{"--classifier-indel " + classifierIndel} \
--output-directory ~{outputDir} \
--genome-reference ~{reference.fasta} \
~{"--inclusion-region " + inclusionRegion} \
~{"--exclusion-region " + exclusionRegion} \
--threads ~{threads} \
single \
--bam-file ~{bam.file} \
~{"--mutect2-vcf " + mutect2VCF} \
~{"--varscan-vcf " + varscanVCF} \
~{"--vardict-vcf " + vardictVCF} \
~{"--lofreq-vcf " + lofreqVCF} \
~{"--scalpel-vcf " + scalpelVCF} \
~{"--strelka-vcf " + strelkaVCF}
}
output {
File indels = outputDir + if defined(classifierIndel)
then "/SSeq.Classified.sINDEL.vcf"
else "/Consensus.sINDEL.vcf"
File snvs = outputDir + if defined(classifierSNV)
then "/SSeq.Classified.sSNV.vcf"
else "/Consensus.sSNV.vcf"
File ensembleIndels = outputDir + "/Ensemble.sINDEL.tsv"
File ensembleSNV = outputDir + "/Ensemble.sSNV.tsv"
}
runtime {
cpu: threads
docker: "lethalfang/somaticseq:3.1.0"
}
}
task ParallelSingleTrain {
input {
String installDir = "/opt/somaticseq" #the location in the docker image
File truthSNV
File truthIndel
String outputDir
Reference reference
File? inclusionRegion
File? exclusionRegion
IndexedBamFile bam
File? mutect2VCF
File? varscanVCF
File? vardictVCF
File? lofreqVCF
File? scalpelVCF
File? strelkaVCF
Int threads = 1
}
command {
~{installDir}/somaticseq_parallel.py \
--somaticseq-train \
--truth-snv ~{truthSNV} \
--truth-indel ~{truthIndel} \
--output-directory ~{outputDir} \
--genome-reference ~{reference.fasta} \
~{"--inclusion-region " + inclusionRegion} \
~{"--exclusion-region " + exclusionRegion} \
--threads ~{threads} \
single \
--bam-file ~{bam.file} \
~{"--mutect2-vcf " + mutect2VCF} \
~{"--varscan-vcf " + varscanVCF} \
~{"--vardict-vcf " + vardictVCF} \
~{"--lofreq-vcf " + lofreqVCF} \
~{"--scalpel-vcf " + scalpelVCF} \
~{"--strelka-vcf " + strelkaVCF}
}
output {
File consensusIndels = outputDir + "/Consensus.sINDEL.vcf"
File consensusSNV = outputDir + "/Consensus.sSNV.vcf"
File ensembleIndels = outputDir + "/Ensemble.sINDEL.tsv"
File ensembleSNV = outputDir + "/Ensemble.sSNV.tsv"
File ensembleIndelsClassifier = outputDir + "/Ensemble.sINDEL.tsv.ntChange.Classifier.RData"
File ensembleSNVClassifier = outputDir + "/Ensemble.sSNV.tsv.ntChange.Classifier.RData"
}
runtime {
cpu: threads
docker: "lethalfang/somaticseq:3.1.0"
}
}
This diff is collapsed.
Click to expand it.
strelka.wdl
+
3
−
0
View file @
af4ccc1c
...
...
@@ -77,6 +77,7 @@ task ConfigureSomatic {
task Run {
input {
String? preCommand
String runDir
Int cores = 1
Int memory = 4
...
...
@@ -85,6 +86,8 @@ task Run {
}
command {
set -e -o pipefail
~{preCommand}
~{runDir}/runWorkflow.py \
-m local \
-j ~{cores} \
...
...
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