Repository navigation
Merge BAM_SOMATIC_VARIANT_CALLING_GATK subworkflows - #13335
beatrizsavinhas wants to merge 69 commits into
Conversation
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
… different settings for tumor normal and tumor only.
|
As per your suggestion @imsarath, the previous subworkflows have now been deprecated instead of removed. |
This reverts commit 367c75c.
…tecontamination_in.
| ch_calculatecontamination_in = GATK4_GETPILEUPSUMMARIES.out.table | ||
| .map { meta, table -> | ||
| tuple( | ||
| meta.original_meta, | ||
| [(meta.id.endsWith('_tumor') ? 'tumor' : 'normal'): table] | ||
| ) | ||
| } | ||
| .groupTuple() | ||
| // Ensure the correct order of the tables (tumor first, normal second) | ||
| .map { meta, table_maps -> | ||
|
|
||
| def tables = table_maps.sum([:]) | ||
|
|
||
| tuple( | ||
| meta, | ||
| tables.tumor, | ||
| tables.normal ? tables.normal : [] | ||
| ) | ||
| } |
There was a problem hiding this comment.
I think this logic could be improved and simplified! Any suggestions?
|
I just had to pull apart the mutect2 subworkflow to move the filtering in into a different subworkflow so it can be shared with other callers, in case this is useful for you : nf-core/sarek#2349 |
PR checklist
Create
BAM_SOMATIC_VARIANT_CALLING_GATKsubworkflow merging the logic forBAM_TUMOR_NORMAL_SOMATIC_VARIANT_CALLING_GATKandBAM_TUMOR_ONLY_SOMATIC_VARIANT_CALLING_GATK. A single subworkflow capable of performing both analysis types reduces code duplication in pipelines that can run both tumor only and tumor-normal analyses.topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda