-
Notifications
You must be signed in to change notification settings - Fork 526
Sentieon-haplotyper and joint-germline with Sentieon Genotyper and VQSR #1007
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
Changes from all commits
f15ad55
4d45b72
c4343cf
0f0e5d8
a1803a5
88606f9
e38ca4f
ecc0da1
395b584
b520780
58e88f5
72cb3f0
22be85b
607eb1f
eecde5f
da38969
3cd76e3
cfa1b84
4651282
58e1560
c3b1a29
03280a5
c92bc46
c8adea8
7cdf463
2389593
4633afa
56d3499
42a6b7c
b933707
4c11563
09b60ee
357952d
d5502ef
f8d6192
6c1c39f
8f50852
ac3f648
12e7d8d
2fbc6c9
ef24e21
393ecff
e1170ab
699bbf9
e5df910
422fcee
d00a208
7efeeb6
71f5b05
6432638
c8f544a
c087897
4090e50
0cda035
f4c0c40
b674fbb
ecb3f78
a87d36c
cc45a80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Config file for defining DSL2 per module options and publishing paths | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Available keys to override module options: | ||
| ext.args = Additional arguments appended to command in module. | ||
| ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
| ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
| ext.prefix = File name prefix for output files. | ||
| ext.when = When to run the module. | ||
| ---------------------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| // SENTIEON HAPLOTYPER | ||
|
|
||
| process { | ||
|
|
||
| withName: 'SENTIEON_HAPLOTYPER' { | ||
| // ext.args = { params.joint_germline ? "-ERC GVCF" : "" } // TO-DO: Change that | ||
| // ext.prefix = { meta.num_intervals <= 1 ? ( params.joint_germline ? "${meta.id}.haplotyper.g" : "${meta.id}.haplotyper" ) : ( params.joint_germline ? "${meta.id}.haplotyper.${intervals.simpleName}.g" :"${meta.id}.haplotyper.${intervals.simpleName}" ) } // old value | ||
| ext.prefix = { meta.num_intervals <= 1 ? "${meta.id}.haplotyper" : "${meta.id}.haplotyper.${intervals.simpleName}" } | ||
| ext.when = { params.tools && params.tools.split(',').contains('sentieon_haplotyper') } | ||
| publishDir = [ | ||
| enabled: !params.joint_germline, | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/"}, | ||
| pattern: "*{vcf.gz,vcf.gz.tbi}", | ||
| saveAs: { meta.num_intervals > 1 ? null : "sentieon_haplotyper/${meta.id}/${it}" } | ||
| ] | ||
| } | ||
|
|
||
| withName: 'MERGE_SENTIEON_HAPLOTYPER_VCFS' { | ||
| ext.prefix = { params.joint_germline ? "${meta.id}.haplotyper.g" : "${meta.id}.haplotyper.unfiltered" } // TO-DO: This shouldn't be relevant for gvcf. But check with the joint-germline flow. | ||
| publishDir = [ | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/sentieon_haplotyper/${meta.id}/" }, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
|
|
||
|
|
||
| withName: 'MERGE_SENTIEON_HAPLOTYPER_GVCFS' { | ||
| ext.prefix = { "${meta.id}.haplotyper.g" } | ||
| publishDir = [ | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/sentieon_haplotyper/${meta.id}/" }, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
|
|
||
| withName: '.*BAM_VARIANT_CALLING_SENTIEON_HAPLOTYPER:VCF_VARIANT_FILTERING_GATK:FILTERVARIANTTRANCHES' { | ||
| ext.prefix = {"${meta.id}.haplotyper"} | ||
| ext.args = { "--info-key CNN_1D" } | ||
| publishDir = [ | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/sentieon_haplotyper/${meta.id}/"}, | ||
| pattern: "*{vcf.gz,vcf.gz.tbi}" | ||
| ] | ||
| } | ||
|
|
||
| if (params.tools && params.tools.split(',').contains('haplotypecaller')) { | ||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_VARIANT_CALLING_HAPLOTYPECALLER:BAM_MERGE_INDEX_SAMTOOLS:(MERGE_BAM|INDEX_MERGE_BAM)' { | ||
| ext.prefix = { "${meta.id}.realigned" } | ||
| publishDir = [ | ||
| enabled: true, | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/haplotypecaller/${meta.id}/" }, | ||
| pattern: "*{bam,bai}" | ||
| ] | ||
| } | ||
| } | ||
|
|
||
| if (params.tools && params.tools.split(',').contains('sentieon_haplotyper')) { | ||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_VARIANT_CALLING_SENTIEON_HAPLOTYPER:BAM_MERGE_INDEX_SAMTOOLS:(MERGE_BAM|INDEX_MERGE_BAM)' { | ||
| ext.prefix = { "${meta.id}.realigned" } | ||
| publishDir = [ | ||
| enabled: true, | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/sentieon_haplotyper/${meta.id}/" }, | ||
| pattern: "*{bam,bai}" | ||
| ] | ||
| } | ||
| } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Config file for defining DSL2 per module options and publishing paths | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Available keys to override module options: | ||
| ext.args = Additional arguments appended to command in module. | ||
| ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
| ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
| ext.prefix = File name prefix for output files. | ||
| ext.when = When to run the module. | ||
| ---------------------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| // SENTIEON+GATK4 JOINT_GERMLINE // TO-DO: Figure out how much of this config is needed or wanted. | ||
|
|
||
| process { | ||
|
|
||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_JOINT_CALLING_GERMLINE_SENTIEON:GATK4_GENOMICSDBIMPORT' { | ||
| ext.args = { "--genomicsdb-shared-posixfs-optimizations true --bypass-feature-reader "} | ||
| ext.prefix = { "${meta.intervals_name}.joint" } | ||
| } | ||
|
|
||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_JOINT_CALLING_GERMLINE_SENTIEON:SENTIEON_GVCFTYPER' { | ||
| ext.args = { "--allow-old-rms-mapping-quality-annotation-data" } | ||
| ext.prefix = { meta.intervals_name } | ||
| } | ||
|
|
||
| if (params.tools && params.tools.contains('sentieon_haplotyper') && params.joint_germline) { | ||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_JOINT_CALLING_GERMLINE_SENTIEON::BCFTOOLS_SORT' { | ||
| ext.prefix = { "${vcf.baseName.minus("vcf")}sort" } | ||
| publishDir = [ | ||
| enabled: false | ||
| ] | ||
| } | ||
| } | ||
|
|
||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_JOINT_CALLING_GERMLINE_SENTIEON:MERGE_GENOTYPEGVCFS' { | ||
| ext.prefix = "joint_germline" | ||
| publishDir = [ | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/sentieon_haplotyper/joint_variant_calling/" }, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename }, | ||
| pattern: "*{vcf.gz,vcf.gz.tbi}" | ||
| ] | ||
| } | ||
|
|
||
| withName: 'NFCORE_SAREK:SAREK:BAM_VARIANT_CALLING_GERMLINE_ALL:BAM_JOINT_CALLING_GERMLINE_SENTIEON:MERGE_VQSR' { | ||
| ext.prefix = "joint_germline_recalibrated" | ||
| publishDir = [ | ||
| mode: params.publish_dir_mode, | ||
| path: { "${params.outdir}/variant_calling/sentieon_haplotyper/joint_variant_calling/"}, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename }, | ||
| pattern: "*{vcf.gz,vcf.gz.tbi}" | ||
| ] | ||
| } | ||
|
|
||
| withName: 'SENTIEON_VARCAL_INDEL' { | ||
| ext.prefix = { "${meta.id}_INDEL" } | ||
| ext.args = "--annotation QD --annotation MQRankSum --annotation ReadPosRankSum --annotation FS --annotation SOR --annotation DP --var_type INDEL" | ||
| publishDir = [ | ||
| enabled: false | ||
| ] | ||
| } | ||
|
|
||
| withName: 'SENTIEON_APPLYVARCAL_INDEL' { | ||
| ext.prefix = { "${meta.id}_INDEL" } | ||
| ext.args = '--sensitivity 99.9 --var_type INDEL' | ||
| } | ||
|
|
||
| withName: 'SENTIEON_VARCAL_SNP' { | ||
| ext.prefix = { "${meta.id}_SNP" } | ||
| ext.args = "--annotation QD --annotation MQRankSum --annotation ReadPosRankSum --annotation FS --annotation SOR --annotation DP --var_type SNP" | ||
| publishDir = [ | ||
| enabled: false | ||
| ] | ||
| } | ||
|
|
||
| withName: 'SENTIEON_APPLYVARCAL_SNP' { | ||
| ext.prefix = { "${meta.id}_SNP" } | ||
| ext.args = '--sensitivity 99.9 --var_type SNP' | ||
| } | ||
|
|
||
|
|
||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.