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
5a7dbffa
Commit
5a7dbffa
authored
6 years ago
by
ffinfo
Browse files
Options
Downloads
Patches
Plain Diff
Switching picard to structs
parent
6300bba0
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
common.wdl
+2
-0
2 additions, 0 deletions
common.wdl
picard.wdl
+53
-50
53 additions, 50 deletions
picard.wdl
with
55 additions
and
50 deletions
common.wdl
+
2
−
0
View file @
5a7dbffa
...
...
@@ -147,11 +147,13 @@ struct Reference {
struct IndexedVcfFile {
File file
File index
File? md5sum
}
struct IndexedBamFile {
File file
File index
File? md5sum
}
struct FastqPair {
...
...
This diff is collapsed.
Click to expand it.
picard.wdl
+
53
−
50
View file @
5a7dbffa
version 1.0
import "common.wdl"
task BedToIntervalList {
input {
String? preCommand
...
...
@@ -40,11 +42,8 @@ task BedToIntervalList {
task CollectMultipleMetrics {
input {
String? preCommand
File bamFile
File bamIndex
File refFasta
File refDict
File refFastaIndex
IndexedBamFile bam
Reference reference
String basename
Boolean collectAlignmentSummaryMetrics = true
...
...
@@ -53,7 +52,7 @@ task CollectMultipleMetrics {
Boolean meanQualityByCycle = true
Boolean collectBaseDistributionByCycle = true
Boolean collectGcBiasMetrics = true
#Boolean rnaSeqMetrics = false # There is a bug in picard https://github.com/broadinstitute/picard/issues/999
#
FIXME:
Boolean rnaSeqMetrics = false # There is a bug in picard https://github.com/broadinstitute/picard/issues/999
Boolean collectSequencingArtifactMetrics = true
Boolean collectQualityYieldMetrics = true
...
...
@@ -73,8 +72,8 @@ task CollectMultipleMetrics {
~{preCommand}
~{toolCommand} \
CollectMultipleMetrics \
I=~{bam
F
ile} \
R=~{ref
F
asta} \
I=~{bam
.f
ile} \
R=~{ref
erence.f
asta} \
O=~{basename} \
PROGRAM=null \
~{true="PROGRAM=CollectAlignmentSummaryMetrics" false="" collectAlignmentSummaryMetrics} \
...
...
@@ -117,8 +116,7 @@ task CollectMultipleMetrics {
task CollectRnaSeqMetrics {
input {
String? preCommand
File bamFile
File bamIndex
IndexedBamFile bam
File refRefflat
String basename
String strandSpecificity = "NONE"
...
...
@@ -139,7 +137,7 @@ task CollectRnaSeqMetrics {
~{preCommand}
~{toolCommand} \
CollectRnaSeqMetrics \
I=~{bam
F
ile} \
I=~{bam
.f
ile} \
O=~{basename}.RNA_Metrics \
CHART_OUTPUT=~{basename}.RNA_Metrics.pdf \
STRAND_SPECIFICITY=~{strandSpecificity} \
...
...
@@ -159,11 +157,8 @@ task CollectRnaSeqMetrics {
task CollectTargetedPcrMetrics {
input {
String? preCommand
File bamFile
File bamIndex
File refFasta
File refDict
File refFastaIndex
IndexedBamFile bam
Reference reference
File ampliconIntervals
Array[File]+ targetIntervals
String basename
...
...
@@ -184,8 +179,8 @@ task CollectTargetedPcrMetrics {
~{preCommand}
~{toolCommand} \
CollectTargetedPcrMetrics \
I=~{bam
F
ile} \
R=~{ref
F
asta} \
I=~{bam
.f
ile} \
R=~{ref
erence.f
asta} \
AMPLICON_INTERVALS=~{ampliconIntervals} \
TARGET_INTERVALS=~{sep=" TARGET_INTERVALS=" targetIntervals} \
O=~{basename}.targetPcrMetrics \
...
...
@@ -208,9 +203,8 @@ task CollectTargetedPcrMetrics {
task GatherBamFiles {
input {
String? preCommand
Array[File]+ input_bams
String output_bam_path
Int? compression_level
Array[IndexedBamFile]+ inputBams
String outputBamPath
String? picardJar
Int memory = 4
...
...
@@ -226,16 +220,18 @@ task GatherBamFiles {
~{preCommand}
~{toolCommand} \
GatherBamFiles \
INPUT=~{sep=' INPUT=' input
_b
ams} \
OUTPUT=~{output
_bam_p
ath} \
INPUT=~{sep=' INPUT=' input
B
ams
.file
} \
OUTPUT=~{output
BamP
ath} \
CREATE_INDEX=true \
CREATE_MD5_FILE=true
}
output {
File output_bam = "~{output_bam_path}"
File output_bam_index = sub(output_bam_path, ".bam$", ".bai")
File output_bam_md5 = "~{output_bam_path}.md5"
IndexedBamFile outputBam = object {
file: outputBamPath,
index: sub(outputBamPath, ".bam$", ".bai"),
md5: outputBamPath + ".md5"
}
}
runtime {
...
...
@@ -247,10 +243,9 @@ task GatherBamFiles {
task MarkDuplicates {
input {
String? preCommand
Array[File] input_bams
String output_bam_path
String metrics_path
Int? compression_level
Array[IndexedBamFile] inputBams
String outputBamPath
String metricsPath
String? picardJar
Int memory = 4
...
...
@@ -273,24 +268,28 @@ task MarkDuplicates {
command {
set -e -o pipefail
~{preCommand}
mkdir -p $(dirname ~{output
_bam_p
ath})
mkdir -p $(dirname ~{output
BamP
ath})
~{toolCommand} \
MarkDuplicates \
INPUT=~{sep=' INPUT=' input
_b
ams} \
OUTPUT=~{output
_bam_p
ath} \
METRICS_FILE=~{metrics
_p
ath} \
INPUT=~{sep=' INPUT=' input
B
ams
.file
} \
OUTPUT=~{output
BamP
ath} \
METRICS_FILE=~{metrics
P
ath} \
VALIDATION_STRINGENCY=SILENT \
~{"READ_NAME_REGEX=" + read_name_regex} \
OPTICAL_DUPLICATE_PIXEL_DISTANCE=2500 \
CLEAR_DT="false" \
CREATE_INDEX=true \
ADD_PG_TAG_TO_READS=false
ADD_PG_TAG_TO_READS=false \
CREATE_MD5_FILE=true
}
output {
File output_bam = output_bam_path
File output_bam_index = sub(output_bam_path, ".bam$", ".bai")
File duplicate_metrics = metrics_path
IndexedBamFile outputBam = object {
file: outputBamPath,
index: sub(outputBamPath, ".bam$", ".bai"),
md5: outputBamPath + ".md5"
}
File metricsFile = metricsPath
}
runtime {
...
...
@@ -304,7 +303,7 @@ task MergeVCFs {
String? preCommand
Array[File] inputVCFs
Array[File] inputVCFsIndexes
String outputV
CFp
ath
String outputV
cfP
ath
Int? compressionLevel
String? picardJar
...
...
@@ -325,12 +324,14 @@ task MergeVCFs {
~{toolCommand} \
MergeVcfs \
INPUT=~{sep=' INPUT=' inputVCFs} \
OUTPUT=~{outputV
CFp
ath}
OUTPUT=~{outputV
cfP
ath}
}
output {
File outputVCF = outputVCFpath
File outputVCFindex = outputVCFpath + ".tbi"
IndexedVcfFile outputVcf = object {
file: outputVcfPath,
index: outputVcfPath + ".tbi"
}
}
runtime {
...
...
@@ -341,7 +342,7 @@ task MergeVCFs {
task SamToFastq {
input {
String? preCommand
File inputBam
IndexedBam
File inputBam
String outputRead1
String? outputRead2
String? outputUnpaired
...
...
@@ -360,7 +361,7 @@ task SamToFastq {
~{preCommand}
~{toolCommand} \
SamToFastq \
I=~{inputBam} \
I=~{inputBam
.file
} \
~{"FASTQ=" + outputRead1} \
~{"SECOND_END_FASTQ=" + outputRead2} \
~{"UNPAIRED_FASTQ=" + outputUnpaired}
...
...
@@ -422,8 +423,8 @@ task SortVcf {
String? picardJar
Array[File]+ vcfFiles
String outputVcf
File?
sequenceD
ict
String outputVcf
Path
File?
d
ict
Int memory = 4
Float memoryMultiplier = 3.0
...
...
@@ -439,13 +440,15 @@ task SortVcf {
~{toolCommand} \
SortVcf \
I=~{sep=" I=" vcfFiles} \
~{"SEQUENCE_DICTIONARY=" +
sequenceD
ict} \
O=~{outputVcf}
~{"SEQUENCE_DICTIONARY=" +
d
ict} \
O=~{outputVcf
Path
}
}
output {
File vcfFile = outputVcf
File vcfIndex = outputVcf + ".tbi"
IndexedVcfFile outputVcf = object {
file: outputVcfPath,
index: outputVcfPath + ".tbi"
}
}
runtime {
...
...
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