Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joint Germline subworkflow haplotypecaller -> Vqsr #595

Merged
merged 90 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
19e5e0e
add vqsr from Atholl, very early WIP
May 13, 2022
cd8d767
added meta.yml for vqsr subworkflow
GCJMackenzie Jun 1, 2022
03909c9
Merge pull request #9 from GCJMackenzie/add_vqsr_subworkflow
nickhsmith Jun 9, 2022
c22a64f
joint variant calling updates to gatk best practices
Jun 17, 2022
028ad1a
group by interval and exclude sample info
Jun 17, 2022
57c2dff
interval and no_interval grouping
Jun 20, 2022
ea8dd93
add params and vqsr process
Jun 22, 2022
d6cc403
print statements
Jun 23, 2022
b78ad1c
joint variantcalling
Jun 27, 2022
37aa902
update
Jun 28, 2022
d49a5ac
add interval_names to meta
Jun 29, 2022
d574b0c
Merge remote-tracking branch 'NF-core/dev' into vqsr
Jun 29, 2022
dd7445f
prepare vqsr
Jul 4, 2022
06c66ad
remove inclusion of local config
Jul 4, 2022
8686dfb
lint
Jul 4, 2022
f9fcb65
force bcftools sort
Jul 6, 2022
6e5e8dd
fix typo and clearer naming
Jul 7, 2022
9a29759
include variant_recalibration param
Jul 7, 2022
aa110ab
apply vqsr and merge
Jul 8, 2022
fa41fa0
snp and indels must be present for recalibration
Jul 8, 2022
17924d0
fix typo
Jul 11, 2022
50de0de
typo
Jul 11, 2022
7947ce0
improve resource channels
Jul 12, 2022
3463c56
pre-merge
Jul 12, 2022
1c48729
merge with nf-core dev
Jul 12, 2022
b835c37
improve haplotypecaller merging
Jul 12, 2022
d45423f
fix naming
Jul 12, 2022
ed5ccea
update known_sites
Jul 13, 2022
3de8f7f
Merge remote-tracking branch 'NF-core/dev' into vqsr
Jul 13, 2022
b2fd565
update
Jul 14, 2022
bfaf48d
fix typo
Jul 15, 2022
cb25481
publishDir
Jul 15, 2022
8fd7ff9
flatten known_sites
Jul 18, 2022
4eac972
merge with dev
Jul 18, 2022
ced2398
add joint_germline
Jul 18, 2022
66a7f00
update modules
Jul 18, 2022
0ea9747
fix no_intervals and tests
Jul 18, 2022
0717286
lint
Jul 18, 2022
37e5e77
update to dev
Jul 18, 2022
1db8bc8
lint
Jul 18, 2022
ff6b530
fix empty module
Jul 18, 2022
aa7127a
correct prepare_genome input
Jul 18, 2022
5be916a
merge with dev
Jul 19, 2022
21182a3
change name to match tests
nickhsmith Jul 19, 2022
9eebd71
update test
nickhsmith Jul 19, 2022
69feebd
Update workflows/sarek.nf
nickhsmith Jul 19, 2022
20a7e2e
Update workflows/sarek.nf
nickhsmith Jul 19, 2022
3cbe260
Apply suggestions from code review
nickhsmith Jul 19, 2022
e9fb076
Update conf/modules.config
nickhsmith Jul 19, 2022
6ea35cc
Update subworkflows/nf-core/variantcalling/haplotypecaller/main.nf
nickhsmith Jul 19, 2022
8d7235d
Update conf/modules.config
nickhsmith Jul 19, 2022
13f9bd7
Update nextflow_schema.json
nickhsmith Jul 19, 2022
e75a7f3
remove unneeded when statements
Jul 19, 2022
fb7c594
update paths
nickhsmith Jul 19, 2022
04b3191
Merge branch 'vqsr' of github.com:nickhsmith/sarek into vqsr
nickhsmith Jul 19, 2022
9e31397
fix warnings
nickhsmith Jul 19, 2022
fc0c251
fix warnings
nickhsmith Jul 19, 2022
2e9a724
update path
nickhsmith Jul 19, 2022
748947d
remove lane from csv
nickhsmith Jul 19, 2022
7e3a11e
add step_variant calling
nickhsmith Jul 19, 2022
77eb3d6
Update conf/modules.config
nickhsmith Jul 19, 2022
3fe7927
Update conf/modules.config
nickhsmith Jul 19, 2022
acb9fce
Update modules.config
nickhsmith Jul 19, 2022
c793d5f
Merge remote-tracking branch 'NF-core/dev' into vqsr
Jul 19, 2022
87f3405
Apply suggestions from code review
nickhsmith Jul 20, 2022
ef8f526
Apply suggestions from code review
nickhsmith Jul 20, 2022
72b4bc8
hg19 sample names
Jul 20, 2022
e5b1703
change tool inputs
Jul 20, 2022
d6c006e
Merge branch 'vqsr' of github.com:nickhsmith/sarek into vqsr
Jul 20, 2022
c94e00b
Update subworkflows/nf-core/variantcalling/haplotypecaller/main.nf
nickhsmith Jul 20, 2022
0dd0976
Update after code review
Jul 20, 2022
717e271
groupTuple
Jul 20, 2022
da17db9
merge with dev
Jul 20, 2022
4b9bd9f
improve meta and tupleGrouping
Jul 20, 2022
9bae10f
Update conf/igenomes.config
nickhsmith Jul 20, 2022
b77a116
Update conf/modules.config
nickhsmith Jul 20, 2022
468dedb
Update nextflow_schema.json
nickhsmith Jul 20, 2022
e919d09
Update subworkflows/local/germline_variant_calling.nf
nickhsmith Jul 20, 2022
46bc423
Update subworkflows/local/germline_variant_calling.nf
nickhsmith Jul 20, 2022
f057709
Update germline_variant_calling.nf
nickhsmith Jul 20, 2022
4d50caf
Update subworkflows/nf-core/gatk4/joint_germline_variant_calling/main.nf
nickhsmith Jul 20, 2022
c707f7c
meta format
Jul 20, 2022
ac0a1f5
undo publishDir change
Jul 20, 2022
a6d6e9a
hardcode joint_variant_calling publish path
Jul 20, 2022
7f5a916
fix typo
Jul 20, 2022
1fc9e2a
Merge remote-tracking branch 'NF-core/dev' into vqsr
Jul 20, 2022
d842fe0
Merge branch 'dev' into vqsr
nickhsmith Jul 20, 2022
73e84db
fix haplotypecaller cram input
nickhsmith Jul 20, 2022
9fa1a5c
fix indents, commas etc
FriederikeHanssen Jul 21, 2022
b0c32c7
remove test file
nickhsmith Jul 21, 2022
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
18 changes: 14 additions & 4 deletions conf/igenomes.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ params {
ascat_loci_rt = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/ASCAT/RT_G1000_hg19.zip"
bwa = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Sequence/BWAIndex/"
chr_dir = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Sequence/Chromosomes"
dbsnp = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf"
dbsnp_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf.idx"
dbsnp = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf.gz"
dbsnp_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf.gz.tbi"
dbsnp_vqsr = '--resource:dbsnp,known=false,training=true,truth=false,prior=2.0 dbsnp_138.b37.vcf.gz'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dbsnp = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf.gz"
dbsnp_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf.gz.tbi"
dbsnp_vqsr = '--resource:dbsnp,known=false,training=true,truth=false,prior=2.0 dbsnp_138.b37.vcf.gz'
dbsnp = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf"
dbsnp_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/dbsnp_138.b37.vcf.idx"
dbsnp_vqsr = '--resource:dbsnp,known=false,training=true,truth=false,prior=2.0 dbsnp_138.b37.vcf'

The files are not yet on igenomes, so I would update this all together in #662 once they are there

dict = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.dict"
fasta = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.fasta"
fasta_fai = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.fasta.fai"
germline_resource = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GermlineResource/gnomAD.r2.1.1.GRCh37.PASS.AC.AF.only.vcf.gz"
germline_resource_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GermlineResource/gnomAD.r2.1.1.GRCh37.PASS.AC.AF.only.vcf.gz.tbi"
intervals = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/intervals/wgs_calling_regions_Sarek.list"
known_indels = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf"
known_indels_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.idx"
known_snps = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/1000G_phase1.snps.high_confidence.b37.vcf.gz"
known_snps_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/1000G_phase1.snps.high_confidence.b37.vcf.idx.gz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
known_snps_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/1000G_phase1.snps.high_confidence.b37.vcf.idx.gz"
known_snps_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/1000G_phase1.snps.high_confidence.b37.vcf.gz.tbi"

known_snps_vqsr = '--resource:1000G,known=false,training=true,truth=true,prior=10.0 1000G_phase1.snps.high_confidence.b37.vcf.gz'
known_indels = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.gz"
known_indels_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.gz.idx"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
known_indels_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.gz.idx"
known_indels_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.gz.tbi

known_indels_vqsr = '--resource:1000G,known=false,training=true,truth=true,prior=10.0 1000G_phase1.indels.b37.vcf.gz --resource:mills,known=false,training=true,truth=true,prior=10.0 Mills_and_1000G_gold_standard.indels.b37.vcf.gz'
mappability = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh37/Annotation/Control-FREEC/out100m2_hg19.gem"
snpeff_db = 'GRCh37.87'
snpeff_genome = 'GRCh37'
Expand All @@ -50,14 +55,19 @@ params {
chr_dir = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Sequence/Chromosomes"
dbsnp = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz"
dbsnp_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz.tbi"
dbsnp_vqsr = '--resource:dbsnp,known=false,training=true,truth=false,prior=2.0 dbsnp_146.hg38.vcf.gz'
dict = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.dict"
fasta = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.fasta"
fasta_fai = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.fasta.fai"
germline_resource = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GermlineResource/gnomAD.r2.1.1.GRCh38.PASS.AC.AF.only.vcf.gz"
germline_resource_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GermlineResource/gnomAD.r2.1.1.GRCh38.PASS.AC.AF.only.vcf.gz.tbi"
intervals = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/intervals/wgs_calling_regions.hg38.bed"
known_snps = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/1000G_omni2.5.hg38.vcf.gz"
known_snps_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/1000G_omni2.5.hg38.vcf.gz.tbi"
known_snps_vqsr = '--resource:1000G,known=false,training=true,truth=true,prior=10.0 1000G_omni2.5.hg38.vcf.gz'
known_indels = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz"
known_indels_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz.tbi"
known_indels_vqsr = '--resource:gatk,known=false,training=true,truth=true,prior=10.0 Homo_sapiens_assembly38.known_indels.vcf.gz --resource:mills,known=false,training=true,truth=true,prior=10.0 Mills_and_1000G_gold_standard.indels.hg38.vcf.gz'
mappability = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/Control-FREEC/out100m2_hg38.gem"
pon = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/1000g_pon.hg38.vcf.gz"
pon_tbi = "${params.igenomes_base}/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/1000g_pon.hg38.vcf.gz.tbi"
Expand Down
51 changes: 40 additions & 11 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,6 @@ process{
ext.prefix = { meta.num_intervals <= 1 ? "${meta.id}" : "${meta.id}.${target_bed.simpleName}" }
ext.args = '--min-alternate-fraction 0.1 --min-mapping-quality 1'
ext.when = { params.tools && params.tools.split(',').contains('freebayes') }
publishDir = [
enabled: false
]
maxulysse marked this conversation as resolved.
Show resolved Hide resolved
}

withName: 'BCFTOOLS_SORT' {
Expand Down Expand Up @@ -644,17 +641,13 @@ process{
ext.prefix = { meta.num_intervals <= 1 ? ( params.joint_germline ? "${meta.id}.haplotypecaller.g" : "${meta.id}.haplotypecaller" ) : ( params.joint_germline ? "${meta.id}.haplotypecaller.${intervals.simpleName}.g" :"${meta.id}.haplotypecaller.${intervals.simpleName}" ) }
ext.when = { params.tools && params.tools.split(',').contains('haplotypecaller') }
publishDir = [
enabled: !params.joint_germline,
FriederikeHanssen marked this conversation as resolved.
Show resolved Hide resolved
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/"},
pattern: "*{vcf.gz,vcf.gz.tbi}",
saveAs: { meta.num_intervals > 1 ? null : "haplotypecaller/${meta.id}/${it}" }
]
}
withName: 'CNNSCOREVARIANTS' {
publishDir = [
enabled: false
]
}
maxulysse marked this conversation as resolved.
Show resolved Hide resolved
withName: 'FILTERVARIANTTRANCHES' {
ext.prefix = {"${meta.id}.haplotypecaller"}
ext.args = { "--info-key CNN_1D" }
Expand All @@ -665,12 +658,48 @@ process{
]
}

withName: 'GENOTYPEGVCFS' {
ext.prefix = {"${meta.id}.haplotypecaller"}
ext.when = { params.tools && params.tools.split(',').contains('haplotypecaller') && params.joint_germline}
withName: 'GATK4_GENOMICSDBIMPORT' {
ext.prefix = { meta.num_intervals > 1 ? meta.intervals_name : "joint_interval" }
ext.when = { params.tools && params.tools.split(',').contains('haplotypecaller') && params.joint_germline && !params.no_intervals}
nickhsmith marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ext.when = { params.tools && params.tools.split(',').contains('haplotypecaller') && params.joint_germline && !params.no_intervals}
ext.when = { params.tools && params.tools.split(',').contains('haplotypecaller') && params.joint_germline && !params.no_intervals}

}

withName: 'GATK4_GENOTYPEGVCFS' {
ext.prefix = { meta.num_intervals > 1 ? meta.intervals_name: "joint_interval" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we had
"${meta.id}.haplotypecaller" for the prefix here before, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And no more when statement for this one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either the merged and unmerged should have the same name so that regardless if 1 interval or a 100, the output file always has the same name

}
withName: 'MERGE_GENOTYPEGVCFS' {
ext.prefix = "joint_germline"
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/haplotypecaller/${meta.id}/" },
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
pattern: "*{vcf.gz,vcf.gz.tbi}"
]
}

withName: 'VARIANTRECALIBRATOR_INDEL' {
ext.prefix = { "${meta.id}_INDEL" }
ext.args = "-an QD -an MQRankSum -an ReadPosRankSum -an FS -an SOR -an DP -mode INDEL"
}

withName: 'VARIANTRECALIBRATOR_SNP' {
ext.prefix = { "${meta.id}_SNP" }
ext.args = "-an QD -an MQ -an MQRankSum -an ReadPosRankSum -an FS -an SOR -mode SNP"
}
withName: 'GATK4_APPLYVQSR_SNP'{
ext.prefix = { "${meta.id}_SNP" }
ext.args = '--truth-sensitivity-filter-level 99.9 -mode SNP'
}

withName: 'GATK4_APPLYVQSR_INDEL'{
ext.prefix = { "${meta.id}_INDEL" }
ext.args = '--truth-sensitivity-filter-level 99.9 -mode INDEL'
}
withName: 'MERGE_VQSR' {
ext.prefix = "joint_germline_recalibrated"
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/haplotypecaller/${meta.id}/"},
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
pattern: "*{vcf.gz,vcf.gz.tbi}"
]
}
Expand Down
6 changes: 5 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ nextflow.enable.dsl = 2
GENOME PARAMETER VALUES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

params.ascat_alleles = WorkflowMain.getGenomeAttribute(params, 'ascat_alleles')
params.ascat_genome = WorkflowMain.getGenomeAttribute(params, 'ascat_genome')
params.ascat_loci = WorkflowMain.getGenomeAttribute(params, 'ascat_loci')
Expand All @@ -37,15 +36,20 @@ params.bwamem2 = WorkflowMain.getGenomeAttribute(params, 'bwamem2'
params.chr_dir = WorkflowMain.getGenomeAttribute(params, 'chr_dir')
params.dbsnp = WorkflowMain.getGenomeAttribute(params, 'dbsnp')
params.dbsnp_tbi = WorkflowMain.getGenomeAttribute(params, 'dbsnp_tbi')
params.dbsnp_vqsr = WorkflowMain.getGenomeAttribute(params, 'dbsnp_vqsr')
params.dict = WorkflowMain.getGenomeAttribute(params, 'dict')
params.dragmap = WorkflowMain.getGenomeAttribute(params, 'dragmap')
params.fasta = WorkflowMain.getGenomeAttribute(params, 'fasta')
params.fasta_fai = WorkflowMain.getGenomeAttribute(params, 'fasta_fai')
params.germline_resource = WorkflowMain.getGenomeAttribute(params, 'germline_resource')
params.germline_resource_tbi = WorkflowMain.getGenomeAttribute(params, 'germline_resource_tbi')
params.intervals = WorkflowMain.getGenomeAttribute(params, 'intervals')
params.known_snps = WorkflowMain.getGenomeAttribute(params, 'known_snps')
params.known_snps_tbi = WorkflowMain.getGenomeAttribute(params, 'known_snps_tbi')
params.known_snps_vqsr = WorkflowMain.getGenomeAttribute(params, 'known_snps_vqsr')
params.known_indels = WorkflowMain.getGenomeAttribute(params, 'known_indels')
params.known_indels_tbi = WorkflowMain.getGenomeAttribute(params, 'known_indels_tbi')
params.known_indels_vqsr = WorkflowMain.getGenomeAttribute(params, 'known_indels_vqsr')
params.mappability = WorkflowMain.getGenomeAttribute(params, 'mappability')
params.pon = WorkflowMain.getGenomeAttribute(params, 'pon')
params.pon_tbi = WorkflowMain.getGenomeAttribute(params, 'pon_tbi')
Expand Down
2 changes: 1 addition & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"git_sha": "169b2b96c1167f89ab07127b7057c1d90a6996c7"
},
"gatk4/variantrecalibrator": {
"git_sha": "169b2b96c1167f89ab07127b7057c1d90a6996c7"
"git_sha": "edfe28a5e0088b66ee92e7c58186059f9b5e62d5"
},
"manta/germline": {
"git_sha": "ffedf09b6e84b479c9c901274f74bb33f3777243"
Expand Down
10 changes: 6 additions & 4 deletions modules/nf-core/modules/gatk4/variantrecalibrator/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 12 additions & 28 deletions modules/nf-core/modules/gatk4/variantrecalibrator/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ params {
cf_window = null // by default we are not using this in Control-FREEC
ignore_soft_clipped_bases = false // no --dont-use-soft-clipped-bases for GATK Mutect2
wes = false // Set to true, if data is exome/targeted sequencing data. Used to use correct models in various variant callers
joint_germline = false // g.vcf & joint germline calling are not run by default if HaplotypeCaller is selected

// Annotation
vep_out_format = 'vcf'
Expand Down
32 changes: 32 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@
"description": "If true, skips germline variant calling for matched normal to tumor sample. Normal samples without matched tumor will still be processed through germline variant calling tools.",
"help_text": "This can speed up computation for somatic variant calling with matched normal samples. If false, all normal samples are processed as well through the germline variantcalling tools. If true, only somatic variant calling is done."
},
"joint_germline": {
"type": "boolean",
"fa_icon": "fas fa-toolbox",
"description": "Turn on the joint germline variant calling for GATK haplotypecaller",
"help_text": "Uses all normal germline samples (as designated by `status` in the input csv) in the joint germline variant calling process."
},
"ascat_min_base_qual": {
"type": "number",
"default": 20,
Expand Down Expand Up @@ -554,6 +560,11 @@
"help_text": "If you use AWS iGenomes, this has already been set for you appropriately.\n\n> **NB** If none provided, will be generated automatically from the dbsnp file. Combine with `--save_reference` to save for future runs.",
"hidden": true
},
"dbsnp_vqsr": {
"type": "string",
"fa_icon": "fas fa-copy",
"description": "label string for VariantRecalibration (haplotypecaller joint variant calling)"
},
"dict": {
"type": "string",
"fa_icon": "fas fa-file",
Expand Down Expand Up @@ -611,6 +622,27 @@
"help_text": "If you use AWS iGenomes, this has already been set for you appropriately.\n\n> **NB** If none provided, will be generated automatically from the known index file, if provided. Combine with `--save_reference` to save for future runs.",
"hidden": true
},
"known_indels_vqsr": {
"type": "string",
"fa_icon": "fas fa-copy",
"description": "1st label string for VariantRecalibration (haplotypecaller joint variant calling)"
},
"known_snps": {
"type": "string",
"fa_icon": "fas fa-copy",
"description": "Path to known snps file."
},
"known_snps_tbi": {
"type": "string",
"fa_icon": "fas fa-copy",
"description": "Path to known snps file snps.",
"help_text": "> **NB** If none provided, will be generated automatically from the known index file, if provided. Combine with `--save_reference` to save for future runs."
},
"known_snps_vqsr": {
"type": "string",
"fa_icon": "fas fa-copy",
"description": "label string for VariantRecalibration (haplotypecaller joint variant calling)"
},
nickhsmith marked this conversation as resolved.
Show resolved Hide resolved
"mappability": {
"type": "string",
"fa_icon": "fas fa-file",
Expand Down
Loading