Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Dev #30

Merged
merged 44 commits into from
Jan 13, 2020
Merged

Dev #30

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d1c5cbc
README.md
Nov 7, 2018
4b08f6a
Update to gatk4.1
Feb 1, 2019
ab1fccc
Updated forum links in Readme
Feb 1, 2019
f2ec9cc
changed ref file VM path to google bucket path
Feb 1, 2019
ad695aa
Merge branch 'master' into dev
Feb 1, 2019
257166f
updated import link to git tag url
Feb 1, 2019
9b0c86f
Merge branch 'master' of github.com:gatk-workflows/gatk4-somatic-snvs…
Apr 2, 2019
b814bc3
updated to GATK4.1.1.0
Apr 2, 2019
579e36a
minor edits
Apr 2, 2019
f722ae4
changed import to dev for pon
Apr 2, 2019
1594883
updated filter bias variable
Apr 4, 2019
6f58280
updated filter bias variable
Apr 4, 2019
92c1abf
updated output variable names, removed artifact_mode from normal-normal
Apr 4, 2019
0f38435
changed index to idx
Apr 4, 2019
5da3b20
removed artifact_modes
Apr 4, 2019
0ecee17
updated import to next release: 2.4.0
Apr 5, 2019
1719562
specified gatk version in readme
Apr 5, 2019
566fec1
Merge branch 'master' of github.com:gatk-workflows/gatk4-somatic-snvs…
Apr 25, 2019
f055dfc
Added Funcotator note to readme
Apr 25, 2019
0d31a9f
Update to gatk4.1.2.0
Apr 25, 2019
de2d5b3
updated input variable for mutect2
Apr 25, 2019
4054e9b
correctin to input vairalbe
Apr 25, 2019
d7438e1
correction to output variable
Apr 25, 2019
7e22a33
corrected variable name and simplified json
Aug 19, 2019
1494e0b
Merge branch 'master' into dev
Aug 19, 2019
1026dbe
Merge branch 'master' of github.com:gatk-workflows/gatk4-somatic-snvs…
Sep 23, 2019
7dabf3c
renamed input json, removed optional variables from json, updated reg…
Sep 23, 2019
8b690cb
removed nio wdl
Sep 23, 2019
6c8374d
minor update
Sep 23, 2019
9bc5597
Merge branch 'dev' of github.com:gatk-workflows/gatk4-somatic-snvs-in…
Sep 23, 2019
17af7dd
removed comments in json because later version of cromwell throws err…
Sep 23, 2019
0a5b6bd
corrections to import url for pon wdl
Sep 23, 2019
356a43d
mutect2 WDL and pon WDL had inconsistent input names
Sep 26, 2019
98316f3
mutect2 WDL and pon WDL had inconsistent input names
Sep 26, 2019
694372a
added standard_runtime to pon
Sep 26, 2019
c816321
add runtime structs
Sep 26, 2019
085ea22
add runtime structs for mergevcf
Sep 26, 2019
7cfd447
Update mutect2_pon.wdl
Sep 27, 2019
af9cacc
cleaned up input variables
Sep 30, 2019
dc46cd8
Update README.md
Sep 30, 2019
00328d1
updated docker to 4.1.4.0, updated import url to latest release
Oct 11, 2019
bb1c6b2
Merge branch 'dev' of github.com:gatk-workflows/gatk4-somatic-snvs-in…
Oct 11, 2019
f503d0b
updated docker to 4.1.4.1, updated mutect.wdl to 4.1.4.1 gatk release
Jan 2, 2020
6910f24
Merge branch 'master' into dev
Jan 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mutect2.inputs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Mutect2.gatk_docker": "broadinstitute/gatk:4.1.4.0",
"Mutect2.gatk_docker": "broadinstitute/gatk:4.1.4.1",

"Mutect2.intervals": "gs://gatk-best-practices/somatic-b37/whole_exome_agilent_1.1_refseq_plus_3_boosters.Homo_sapiens_assembly19.baits.interval_list",
"Mutect2.scatter_count": 50,
Expand Down
25 changes: 15 additions & 10 deletions mutect2.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ workflow Mutect2 {

Int merged_vcf_size = ceil(size(M2.unfiltered_vcf, "GB"))
Int merged_bamout_size = ceil(size(M2.output_bamOut, "GB"))
Int merged_tumor_pileups_size = ceil(size(M2.tumor_pileups, "GB"))
Int merged_normal_pileups_size = ceil(size(M2.tumor_pileups, "GB"))

if (run_ob_filter) {
call LearnReadOrientationModel {
Expand Down Expand Up @@ -314,7 +312,7 @@ workflow Mutect2 {
if (defined(variants_for_contamination)) {
call MergePileupSummaries as MergeTumorPileups {
input:
input_tables = M2.tumor_pileups,
input_tables = flatten(M2.tumor_pileups),
output_name = output_basename,
ref_dict = ref_dict,
runtime_params = standard_runtime
Expand All @@ -323,7 +321,7 @@ workflow Mutect2 {
if (defined(normal_bam)){
call MergePileupSummaries as MergeNormalPileups {
input:
input_tables = M2.normal_pileups,
input_tables = flatten(M2.normal_pileups),
output_name = output_basename,
ref_dict = ref_dict,
runtime_params = standard_runtime
Expand Down Expand Up @@ -596,10 +594,15 @@ task M2 {
~{true='--f1r2-tar-gz f1r2.tar.gz' false='' run_ob_filter} \
~{m2_extra_args}

m2_exit_code=$?

### GetPileupSummaries
# These must be created, even if they remain empty, as cromwell doesn't support optional output
touch tumor-pileups.table
touch normal-pileups.table

# If the variants for contamination and the intervals for this scatter don't intersect, GetPileupSummaries
# throws an error. However, there is nothing wrong with an empty intersection for our purposes; it simply doesn't
# contribute to the merged pileup summaries that we create downstream. We implement this by with array outputs.
# If the tool errors, no table is created and the glob yields an empty array.
set +e

if [[ ! -z "~{variants_for_contamination}" ]]; then
gatk --java-options "-Xmx~{command_mem}m" GetPileupSummaries -R ~{ref_fasta} -I ~{tumor_bam} ~{"--interval-set-rule INTERSECTION -L " + intervals} \
Expand All @@ -610,6 +613,9 @@ task M2 {
-V ~{variants_for_contamination} -L ~{variants_for_contamination} -O normal-pileups.table
fi
fi

# the script only fails if Mutect2 itself fails
exit $m2_exit_code
>>>

runtime {
Expand All @@ -630,8 +636,8 @@ task M2 {
String normal_sample = read_string("normal_name.txt")
File stats = "~{output_stats}"
File f1r2_counts = "f1r2.tar.gz"
File tumor_pileups = "tumor-pileups.table"
File normal_pileups = "normal-pileups.table"
Array[File] tumor_pileups = glob("*tumor-pileups.table")
Array[File] normal_pileups = glob("*normal-pileups.table")
}
}

Expand Down Expand Up @@ -726,7 +732,6 @@ task MergeStats {
set -e
export GATK_LOCAL_JAR=~{default="/root/gatk.jar" runtime_params.gatk_override}


gatk --java-options "-Xmx~{runtime_params.command_mem}m" MergeMutectStats \
-stats ~{sep=" -stats " stats} -O merged.stats
}
Expand Down
6 changes: 3 additions & 3 deletions mutect2_pon.inputs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Mutect2_Panel.pon_name":"panel_of_normal",
"Mutect2_Panel.normal_bams":"Array[File]",
"Mutect2_Panel.normal_bais":"Array[File]",
"Mutect2_Panel.normal_bams":"Array[String]",
"Mutect2_Panel.normal_bais":"Array[String]",

"Mutect2_Panel.ref_fasta":"gs://gatk-best-practices/somatic-b37/Homo_sapiens_assembly19.fasta",
"Mutect2_Panel.ref_fai":"gs://gatk-best-practices/somatic-b37/Homo_sapiens_assembly19.fasta.fai",
Expand All @@ -12,5 +12,5 @@
"Mutect2_Panel.Mutect2.variants_for_contamination":"gs://gatk-best-practices/somatic-b37/small_exac_common_3.vcf",
"Mutect2_Panel.gnomad":"gs://gatk-best-practices/somatic-b37/af-only-gnomad.raw.sites.vcf",

"Mutect2_Panel.gatk_docker":"broadinstitute/gatk:4.1.4.0"
"Mutect2_Panel.gatk_docker":"broadinstitute/gatk:4.1.4.1"
}