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

Added somatic cnvkit #540

Merged
merged 13 commits into from
Jun 1, 2022
11 changes: 11 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,17 @@ process{
}
}

//CNVKIT_BATCH
withName: 'CNVKIT_BATCH_SOMATIC' {
ext.args = "--diagram --scatter"
ext.when = { params.tools && params.tools.contains('cnvkit') }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/${meta.id}/cnvkit" },
pattern: "*{bed,cnn,cnr,cns}"
]
FriederikeHanssen marked this conversation as resolved.
Show resolved Hide resolved
}

//MANTA
withName: 'CONCAT_MANTA_SOMATIC' {
ext.prefix = {"${meta.id}.somatic_sv"}
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/modules/cnvkit/batch/main.nf

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

12 changes: 12 additions & 0 deletions subworkflows/local/pair_variant_calling.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include { MSISENSORPRO_MSI_SOMATIC } from '../../modules/nf-cor
include { RUN_CONTROLFREEC_SOMATIC } from '../nf-core/variantcalling/controlfreec/somatic/main.nf'
include { RUN_MANTA_SOMATIC } from '../nf-core/variantcalling/manta/somatic/main.nf'
include { RUN_STRELKA_SOMATIC } from '../nf-core/variantcalling/strelka/somatic/main.nf'
include { RUN_CNVKIT_SOMATIC } from '../nf-core/variantcalling/cnvkit/somatic/main.nf'

workflow PAIR_VARIANT_CALLING {
take:
Expand Down Expand Up @@ -93,6 +94,17 @@ workflow PAIR_VARIANT_CALLING {
ch_versions = ch_versions.mix(RUN_CONTROLFREEC_SOMATIC.out.versions)
}

if (tools.contains('cnvkit')){
cram_test = cram_pair
FriederikeHanssen marked this conversation as resolved.
Show resolved Hide resolved
.map{meta, normal_cram, normal_crai, tumor_cram, tumor_crai ->
[meta, tumor_cram, normal_cram]
}
RUN_CNVKIT_SOMATIC( cram_test,
fasta,
intervals_bed_combined,
[])
}

if (tools.contains('manta')) {
RUN_MANTA_SOMATIC( cram_pair_intervals_gz_tbi,
fasta,
Expand Down
Empty file.
27 changes: 27 additions & 0 deletions subworkflows/nf-core/variantcalling/cnvkit/somatic/main.nf

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