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 cnvkit for tumor_only #545

Merged
merged 12 commits into from
May 30, 2022
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#533](https://github.com/nf-core/sarek/pull/533) - Add param `--only_paired_variant_calling` to allow skipping of germline variantcalling for paired samples
- [#536](https://github.com/nf-core/sarek/pull/536) - Add `--step markduplicates` to start from duplicate marking, `--step prepare_recalibration` now ONLY starts at process `BaseRecalibrator` & adding `bam` and `cram` input support for `--step` `markduplicates`, `prepare_recalibration`, `recalibrate`, and `variant_calling`
- [#538](https://github.com/nf-core/sarek/pull/538) - Add param `--seq_platform`, default: `ILLUMINA`
- [#545](https://github.com/nf-core/sarek/pull/545) - Add modules and subworkflows for `cnvkit` tumor_only mode

### Changed

Expand Down Expand Up @@ -73,7 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#513](https://github.com/nf-core/sarek/pull/513), [#527](https://github.com/nf-core/sarek/pull/527) - CNV is back
- [#529](https://github.com/nf-core/sarek/pull/529) - Do not save `versions.yml` files
- [#524](https://github.com/nf-core/sarek/pull/524) - Fix intervals usage by counting the actual list of scatter/gather files produced and not overall number of intervals
- [#549](https://github.com/nf-core/sarek/pull/549) - Fix unique lanes required for Freebayes: issue [#311](https://github.com/nf-core/sarek/issues/311), replaces `meta.clone()` with actual copy of map to avoid issues with https://nfcore.slack.com/archives/C027CM7P08M/p1644241819942339
- [#549](https://github.com/nf-core/sarek/pull/549) - Fix unique lanes required for Freebayes: issue [#311](https://github.com/nf-core/sarek/issues/311), replaces `meta.clone()` with actual copy of map to avoid issues with <https://nfcore.slack.com/archives/C027CM7P08M/p1644241819942339>
Copy link
Contributor

Choose a reason for hiding this comment

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

bit confused this is part of the PR 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

just prettier being prettier


### Deprecated

Expand Down
32 changes: 32 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,38 @@ process{
}
}

// CNVKIT_TUMORONLY

withName: 'CNVKIT_ANTITARGET' {
ext.when = { params.tools && params.tools.contains('cnvkit') }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference" },
pattern: "*{bed}"
]
}

withName: 'CNVKIT_REFERENCE' {
ext.prefix = "cnvkit"
ext.when = { params.tools && params.tools.contains('cnvkit') }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference" },
pattern: "*{cnn}"
]
}

withName: 'CNVKIT_BATCH_TUMORONLY' {
ext.args = { params.wes ? "--method hybrid --diagram --scatter" : "--method wgs --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,pdf,png}"
]
}


//FREEBAYES
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_FREEBAYES_SOMATIC:FREEBAYES' {
ext.args = "--pooled-continuous \
Expand Down
8 changes: 7 additions & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@
"cat/fastq": {
"git_sha": "9aadd9a6d3f5964476582319b3a1c54a3e3fe7c9"
},
"cnvkit/antitarget": {
"git_sha": "58c5ec2f4eb44eff1fb7cc9e02df07bd448c6aaf"
},
"cnvkit/batch": {
"git_sha": "e745e167c1020928ef20ea1397b6b4d230681b4d"
"git_sha": "9096be5464d800156761b7c73c574f5a5bad2f72"
},
"cnvkit/reference": {
"git_sha": "8208140d21f3a754fff2e177db7a0e570fa2af6e"
},
"controlfreec/assesssignificance": {
"git_sha": "9ae34a01d1747019fd37753ff4cafb05aec35a2b"
Expand Down
36 changes: 36 additions & 0 deletions modules/nf-core/modules/cnvkit/antitarget/main.nf

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

44 changes: 44 additions & 0 deletions modules/nf-core/modules/cnvkit/antitarget/meta.yml

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

46 changes: 33 additions & 13 deletions 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.

32 changes: 10 additions & 22 deletions modules/nf-core/modules/cnvkit/batch/meta.yml

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

40 changes: 40 additions & 0 deletions modules/nf-core/modules/cnvkit/reference/main.nf

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

47 changes: 47 additions & 0 deletions modules/nf-core/modules/cnvkit/reference/meta.yml

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

Loading