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
0d3ab44c
Commit
0d3ab44c
authored
6 years ago
by
ffinfo
Browse files
Options
Downloads
Patches
Plain Diff
Fixing validate issues
parent
700b25aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!61
Switch to structs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gatk.wdl
+19
-11
19 additions, 11 deletions
gatk.wdl
picard.wdl
+5
-4
5 additions, 4 deletions
picard.wdl
with
24 additions
and
15 deletions
gatk.wdl
+
19
−
11
View file @
0d3ab44c
...
...
@@ -61,7 +61,8 @@ task BaseRecalibrator {
IndexedBamFile inputBam
String recalibrationReportPath
Array[File]+ sequenceGroupInterval
Array[IndexedVcfFile]? knownIndelsSitesVCFs
Array[File]? knownIndelsSitesVCFs
Array[File]? knownIndelsSitesVCFIndexes
IndexedVcfFile? dbsnpVCF
Reference reference
Int memory = 4
...
...
@@ -69,8 +70,8 @@ task BaseRecalibrator {
}
Array[File]+ knownIndelsSitesVCFsArg = flatten([
select_first([knownIndelsSitesVCFs
.file
, []]),
select_
all
([dbsnpVCF.file]
)
select_first([knownIndelsSitesVCFs, []]),
[
select_
first
([dbsnpVCF
])
.file]
])
String toolCommand = if defined(gatkJar)
...
...
@@ -185,7 +186,8 @@ task GatherBqsrReports {
task GenotypeGVCFs {
input {
String? preCommand
Array[IndexedVcfFile] gvcfFiles
Array[File]+ gvcfFiles
Array[File]+ gvcfFileIndex
Array[File]+ intervals
String outputPath
...
...
@@ -200,6 +202,8 @@ task GenotypeGVCFs {
Float memoryMultiplier =3.0
}
String dbsnpArg = if defined(dbsnpVCF) then "-D " + select_first([dbsnpVCF]).file else ""
String toolCommand = if defined(gatkJar)
then "java -Xmx" + memory + "G -jar " + gatkJar
else "gatk --java-options -Xmx" + memory + "G"
...
...
@@ -211,11 +215,11 @@ task GenotypeGVCFs {
GenotypeGVCFs \
-R ~{reference.fasta} \
-O ~{outputPath} \
~{
"-D " + dbsnpVCF.file
} \
~{
dbsnpArg
} \
-G StandardAnnotation \
--only-output-calls-starting-in-intervals \
-new-qual \
-V ~{sep=' -V ' gvcfFiles
.file
} \
-V ~{sep=' -V ' gvcfFiles} \
-L ~{sep=' -L ' intervals}
}
...
...
@@ -235,7 +239,8 @@ task GenotypeGVCFs {
task HaplotypeCallerGvcf {
input {
String? preCommand
Array[IndexedBamFile]+ inputBams
Array[File]+ inputBams
Array[File]+ inputBamsIndex
Array[File]+ intervalList
String gvcfPath
Reference reference
...
...
@@ -248,6 +253,8 @@ task HaplotypeCallerGvcf {
Float memoryMultiplier = 3
}
String dbsnpArg = if (defined(dbsnpVCF)) then "-D " + select_first([dbsnpVCF]).file else ""
String toolCommand = if defined(gatkJar)
then "java -Xmx" + memory + "G -jar " + gatkJar
else "gatk --java-options -Xmx" + memory + "G"
...
...
@@ -259,9 +266,9 @@ task HaplotypeCallerGvcf {
HaplotypeCaller \
-R ~{reference.fasta} \
-O ~{gvcfPath} \
-I ~{sep=" -I " inputBams
.file
} \
-I ~{sep=" -I " inputBams} \
-L ~{sep=' -L ' intervalList} \
~{
"-D " + dbsnpVCF.file
} \
~{
dbsnpArg
} \
-contamination ~{contamination} \
-ERC GVCF
}
...
...
@@ -282,7 +289,8 @@ task MuTect2 {
input {
String? preCommand
Array[IndexedBamFile]+ inputBams
Array[File]+ inputBams
Array[File]+ inputBamsIndex
Reference reference
String outputVcf
String tumorSample
...
...
@@ -304,7 +312,7 @@ task MuTect2 {
~{toolCommand} \
Mutect2 \
-R ~{reference.fasta} \
-I ~{sep=" -I " inputBams
.file
} \
-I ~{sep=" -I " inputBams} \
-tumor ~{tumorSample} \
~{"-normal " + normalSample} \
-O ~{outputVcf} \
...
...
This diff is collapsed.
Click to expand it.
picard.wdl
+
5
−
4
View file @
0d3ab44c
...
...
@@ -203,7 +203,7 @@ task CollectTargetedPcrMetrics {
task GatherBamFiles {
input {
String? preCommand
Array[
IndexedBam
File]+ inputBams
Array[File]+ inputBams
String outputBamPath
String? picardJar
...
...
@@ -220,7 +220,7 @@ task GatherBamFiles {
~{preCommand}
~{toolCommand} \
GatherBamFiles \
INPUT=~{sep=' INPUT=' inputBams
.file
} \
INPUT=~{sep=' INPUT=' inputBams} \
OUTPUT=~{outputBamPath} \
CREATE_INDEX=true \
CREATE_MD5_FILE=true
...
...
@@ -243,7 +243,8 @@ task GatherBamFiles {
task MarkDuplicates {
input {
String? preCommand
Array[IndexedBamFile] inputBams
Array[File]+ inputBams
Array[File] inputBamIndexes
String outputBamPath
String metricsPath
String? picardJar
...
...
@@ -271,7 +272,7 @@ task MarkDuplicates {
mkdir -p $(dirname ~{outputBamPath})
~{toolCommand} \
MarkDuplicates \
INPUT=~{sep=' INPUT=' inputBams
.file
} \
INPUT=~{sep=' INPUT=' inputBams} \
OUTPUT=~{outputBamPath} \
METRICS_FILE=~{metricsPath} \
VALIDATION_STRINGENCY=SILENT \
...
...
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