Skip to content

Commit c13baa8

Browse files
Merge pull request #545 from SusiJo/cnv_tumor
Added cnvkit for tumor_only
2 parents 57968b5 + 918e841 commit c13baa8

12 files changed

Lines changed: 306 additions & 37 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- [#533](https://github.com/nf-core/sarek/pull/533) - Add param `--only_paired_variant_calling` to allow skipping of germline variantcalling for paired samples
2626
- [#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`
2727
- [#538](https://github.com/nf-core/sarek/pull/538) - Add param `--seq_platform`, default: `ILLUMINA`
28+
- [#545](https://github.com/nf-core/sarek/pull/545) - Add modules and subworkflows for `cnvkit` tumor_only mode
2829

2930
### Changed
3031

@@ -73,7 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7374
- [#513](https://github.com/nf-core/sarek/pull/513), [#527](https://github.com/nf-core/sarek/pull/527) - CNV is back
7475
- [#529](https://github.com/nf-core/sarek/pull/529) - Do not save `versions.yml` files
7576
- [#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
76-
- [#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
77+
- [#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>
7778

7879
### Deprecated
7980

conf/modules.config

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,38 @@ process{
904904
}
905905
}
906906

907+
// CNVKIT_TUMORONLY
908+
909+
withName: 'CNVKIT_ANTITARGET' {
910+
ext.when = { params.tools && params.tools.contains('cnvkit') }
911+
publishDir = [
912+
mode: params.publish_dir_mode,
913+
path: { "${params.outdir}/reference" },
914+
pattern: "*{bed}"
915+
]
916+
}
917+
918+
withName: 'CNVKIT_REFERENCE' {
919+
ext.prefix = "cnvkit"
920+
ext.when = { params.tools && params.tools.contains('cnvkit') }
921+
publishDir = [
922+
mode: params.publish_dir_mode,
923+
path: { "${params.outdir}/reference" },
924+
pattern: "*{cnn}"
925+
]
926+
}
927+
928+
withName: 'CNVKIT_BATCH_TUMORONLY' {
929+
ext.args = { params.wes ? "--method hybrid --diagram --scatter" : "--method wgs --diagram --scatter" }
930+
ext.when = { params.tools && params.tools.contains('cnvkit') }
931+
publishDir = [
932+
mode: params.publish_dir_mode,
933+
path: { "${params.outdir}/variant_calling/${meta.id}/cnvkit" },
934+
pattern: "*{bed,cnn,cnr,cns,pdf,png}"
935+
]
936+
}
937+
938+
907939
//FREEBAYES
908940
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_FREEBAYES_SOMATIC:FREEBAYES' {
909941
ext.args = "--pooled-continuous \

modules.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@
3030
"cat/fastq": {
3131
"git_sha": "9aadd9a6d3f5964476582319b3a1c54a3e3fe7c9"
3232
},
33+
"cnvkit/antitarget": {
34+
"git_sha": "58c5ec2f4eb44eff1fb7cc9e02df07bd448c6aaf"
35+
},
3336
"cnvkit/batch": {
34-
"git_sha": "e745e167c1020928ef20ea1397b6b4d230681b4d"
37+
"git_sha": "9096be5464d800156761b7c73c574f5a5bad2f72"
38+
},
39+
"cnvkit/reference": {
40+
"git_sha": "8208140d21f3a754fff2e177db7a0e570fa2af6e"
3541
},
3642
"controlfreec/assesssignificance": {
3743
"git_sha": "9ae34a01d1747019fd37753ff4cafb05aec35a2b"

modules/nf-core/modules/cnvkit/antitarget/main.nf

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/cnvkit/antitarget/meta.yml

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/cnvkit/batch/main.nf

Lines changed: 33 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/cnvkit/batch/meta.yml

Lines changed: 10 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/cnvkit/reference/main.nf

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/cnvkit/reference/meta.yml

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)