Skip to content

Commit d83794f

Browse files
committed
Merge remote-tracking branch 'origin/dev' into multiqc_channels
2 parents cbe9755 + e5a4ffb commit d83794f

35 files changed

+1254
-693
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343
- [#632](https://github.com/nf-core/sarek/pull/632) - Added params `--snpeff_version` to allow more configuration on the snpeff container definition
4444
- [#632](https://github.com/nf-core/sarek/pull/632) - Added params `--vep_include_fasta` to use the fasta file for annotation
4545
- [#639](https://github.com/nf-core/sarek/pull/639) - Adding genes-txt-file and summary-html-file to the published output from snpEff.
46+
- [#647](https://github.com/nf-core/sarek/pull/647) - Update resource requests for preprocessing based on what worked for 5 ICGC matched WGS samples
4647
- [#652](https://github.com/nf-core/sarek/pull/652) - Added full size somatic test profile.
4748

4849
### Changed
@@ -89,11 +90,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8990
- [#630](https://github.com/nf-core/sarek/pull/630) - Update citations file
9091
- [#632](https://github.com/nf-core/sarek/pull/632) - Update `snpEff` version to `5.1` and cache up to `105`
9192
- [#632](https://github.com/nf-core/sarek/pull/632) - Update `VEP` version to `106.1` and cache up to `106`
93+
- [#618](https://github.com/nf-core/sarek/pull/618) - Update `multiqc` module update test yml files
94+
- [#618](https://github.com/nf-core/sarek/pull/618) - Update test yml files
9295
- [#633](https://github.com/nf-core/sarek/pull/633) - Update `BCFTOOLS` version to `1.15.1`
9396
- [#644](https://github.com/nf-core/sarek/pull/644) - Use `-Y` for `bwa-mem(2)` and remove `-M`
9497
- [#645](https://github.com/nf-core/sarek/pull/645) - Merge `tests/nextflow.config` in `conf/test.config`
9598
- [#646](https://github.com/nf-core/sarek/pull/646) - Update `nextflow_schema.json` to reflect new parameters and functions, removes `--annotation_cache`, removes `--ascat_chromosomes`
99+
- [#649](https://github.com/nf-core/sarek/pull/649) - Update, simplify and add more files to all `test_*.yml` files
100+
- [#651](https://github.com/nf-core/sarek/pull/651) - Added TIDDIT_SOMATIC subworkflow
96101
- [#653](https://github.com/nf-core/sarek/pull/653) - Coherent results subfolder structure between preprocessing, variantcalling and reporting
102+
- [#659](https://github.com/nf-core/sarek/pull/659) - Update usage.md docu section on `How to run ASCAT with WES`
103+
- [#663](https://github.com/nf-core/sarek/pull/663) - Add separate parameters for `ASCAT` and `ControlFREEC` back in
97104

98105
### Fixed
99106

@@ -143,6 +150,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
143150
- [#642](https://github.com/nf-core/sarek/pull/642) - Only unzip ref files if tool is run, only publish ref files if `--save_reference` and simplify CNKit logic
144151
- [#650](https://github.com/nf-core/sarek/pull/650) - Fix intervals checks
145152
- [#654](https://github.com/nf-core/sarek/pull/654) - Allow any step but annotation to start from BAM files
153+
- [#658](https://github.com/nf-core/sarek/pull/658) - Fix split fastq names in multiqc-report
146154
- [#666](https://github.com/nf-core/sarek/pull/666) - Simplify multiqc config channel input
147155

148156
### Deprecated

assets/multiqc_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ extra_fn_clean_exts:
5959
pattern: "^.*.(md|recal).mosdepth.(global|region).dist"
6060
module: mosdepth
6161

62+
sample_names_replace_regex: True
63+
sample_names_replace:
64+
".[0-9]{4}": ".md"
65+
6266
sp:
6367
snpeff:
6468
contents: "SnpEff_version"

conf/base.config

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,28 @@ process {
4949
errorStrategy = 'retry'
5050
maxRetries = 2
5151
}
52-
withName: 'BWAMEM2_MEM' {
53-
memory = { check_max( 60.GB * task.attempt, 'memory' ) }
52+
withName: 'BWAMEM1_MEM|BWAMEM2_MEM' {
53+
cpus = { check_max( 24 * task.attempt, 'cpus' ) }
54+
memory = { check_max( 36.GB * task.attempt, 'memory' ) }
5455
time = { check_max( 48.h * task.attempt, 'time' ) }
5556
}
57+
withName: 'FASTP'{
58+
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
59+
}
60+
withName:'FASTQC|FASTP|MOSDEPTH|SAMTOOLS_CONVERT|SAMTOOLS_MERGE'{
61+
memory = { check_max( 4.GB * task.attempt, 'memory' ) }
62+
}
63+
withName:'GATK4_APPLYBQSR|GATK4_APPLYBQSR_SPARK|GATK4_BASERECALIBRATOR|SAMTOOLS_STATS'{
64+
cpus = { check_max( 4 * task.attempt, 'cpus' ) }
65+
}
66+
withName:'GATK4_APPLYBQSR|GATK4_APPLYBQSR_SPARK|GATK4_BASERECALIBRATOR|GATK4_GATHERBQSRREPORTS'{
67+
memory = { check_max( 46.GB * task.attempt, 'memory' ) }
68+
}
69+
withName: 'GATK4_MARKDUPLICATES'{
70+
memory = { check_max( 300.GB * task.attempt, 'memory' ) }
71+
}
72+
withName: 'FREEBAYES|SAMTOOLS_STATS|SAMTOOLS_INDEX|UNZIP' {
73+
cpus = { check_max( 1 * task.attempt, 'cpus' ) }
74+
}
75+
5676
}

conf/modules.config

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ process {
181181
}
182182

183183
withName: 'TABIX_BGZIPTABIX_INTERVAL_SPLIT' {
184-
ext.prefix = {"${meta.id}.bed"}
184+
ext.prefix = {"${meta.id}"}
185185
publishDir = [
186186
enabled: params.save_reference,
187187
mode: params.publish_dir_mode,
@@ -446,7 +446,7 @@ process {
446446
}
447447

448448

449-
if (params.step == 'mapping' || params.step == 'markduplicates'|| params.step == 'prepare_recalibration'|| params.step == 'recalibrate') {
449+
if ((params.step == 'mapping' || params.step == 'markduplicates'|| params.step == 'prepare_recalibration'|| params.step == 'recalibrate') && (!(params.skip_tools && params.skip_tools.split(',').contains('baserecalibrator')))) {
450450
withName: 'NFCORE_SAREK:SAREK:(RECALIBRATE|RECALIBRATE_SPARK):MERGE_INDEX_CRAM:MERGE_CRAM' {
451451
ext.prefix = { "${meta.id}.recal" }
452452
ext.when = { meta.num_intervals > 1 }
@@ -529,7 +529,7 @@ process {
529529
]
530530
}
531531

532-
if (params.step == 'mapping' || params.step == 'markduplicates'|| params.step == 'prepare_recalibration'|| params.step == 'recalibrate') {
532+
if ((params.step == 'mapping' || params.step == 'markduplicates'|| params.step == 'prepare_recalibration'|| params.step == 'recalibrate') && (!(params.skip_tools && params.skip_tools.split(',').contains('baserecalibrator')))) {
533533
withName: 'NFCORE_SAREK:SAREK:CRAM_QC:MOSDEPTH' {
534534
ext.prefix = { "${meta.id}.recal" }
535535
}
@@ -794,7 +794,7 @@ process{
794794
forcegccontentnormalization: params.wes ? "1" : "0",
795795
minimalsubclonepresence: params.wes ? "30" : "20",
796796
noisydata: params.wes ? "TRUE" : "FALSE",
797-
ploidy: params.ploidy,
797+
ploidy: params.cf_ploidy,
798798
printNA: params.wes ? "FALSE" : "TRUE",
799799
readcountthreshold: params.wes ? "50" : "10",
800800
sex: meta.sex,
@@ -811,7 +811,7 @@ process{
811811
}
812812

813813
withName: 'FREEC2BED' {
814-
ext.args = { "${params.ploidy}" }
814+
ext.args = { "${params.cf_ploidy}" }
815815
publishDir = [
816816
mode: params.publish_dir_mode,
817817
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
@@ -820,7 +820,7 @@ process{
820820
}
821821

822822
withName: 'FREEC2CIRCOS' {
823-
ext.args = { "${params.ploidy}" }
823+
ext.args = { "${params.cf_ploidy}" }
824824
publishDir = [
825825
mode: params.publish_dir_mode,
826826
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
@@ -829,7 +829,7 @@ process{
829829
}
830830

831831
withName: 'MAKEGRAPH' {
832-
ext.args = { "${params.ploidy}" }
832+
ext.args = { "${params.cf_ploidy}" }
833833
publishDir = [
834834
mode: params.publish_dir_mode,
835835
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
@@ -958,7 +958,7 @@ process{
958958
"gender": meta.sex,
959959
"genomeVersion": params.ascat_genome,
960960
"purity": params.ascat_purity,
961-
"ploidy": params.ploidy,
961+
"ploidy": params.ascat_ploidy,
962962
"minCounts": params.ascat_min_counts,
963963
"chrom_names": meta.sex == 'XX' ? "c(1:22, 'X')" : "c(1:22, 'X', 'Y')",
964964
"min_base_qual": params.ascat_min_base_qual,
@@ -1028,7 +1028,7 @@ process{
10281028
forcegccontentnormalization: params.wes ? "1" : "0",
10291029
minimalsubclonepresence: params.wes ? "30" : "20",
10301030
noisydata: params.wes ? "TRUE" : "FALSE",
1031-
ploidy: params.ploidy,
1031+
ploidy: params.cf_ploidy,
10321032
printNA: params.wes ? "FALSE" : "TRUE",
10331033
readcountthreshold: params.wes ? "50" : "10",
10341034
sex: meta.sex,
@@ -1091,21 +1091,21 @@ process{
10911091

10921092
if (params.tools && params.tools.split(',').contains('tiddit')) {
10931093
//TIDDIT
1094-
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_TIDDIT_NORMAL:TABIX_BGZIP_TIDDIT_SV' {
1094+
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_TIDDIT_SOMATIC:RUN_TIDDIT_NORMAL:TABIX_BGZIP_TIDDIT_SV' {
10951095
ext.prefix = {"${meta.id}.tiddit.normal"}
10961096
}
10971097

1098-
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_TIDDIT_TUMOR:TABIX_BGZIP_TIDDIT_SV' {
1098+
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_TIDDIT_SOMATIC:RUN_TIDDIT_TUMOR:TABIX_BGZIP_TIDDIT_SV' {
10991099
ext.prefix = {"${meta.id}.tiddit.tumor"}
11001100
}
11011101

11021102
//SVDB
1103-
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:SVDB_MERGE' {
1103+
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:RUN_TIDDIT_SOMATIC:SVDB_MERGE' {
11041104
ext.prefix = { "${meta.id}.tiddit" }
11051105
publishDir = [
11061106
mode: params.publish_dir_mode,
11071107
path: { "${params.outdir}/variant_calling/tiddit/${meta.id}/" },
1108-
pattern: "*vcf"
1108+
pattern: "*{vcf,vcf.gz}"
11091109
]
11101110
}
11111111
}

conf/test.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ try {
1616
}
1717

1818
params {
19-
2019
config_profile_name = 'Test profile'
2120
config_profile_description = 'Minimal test dataset to check pipeline function'
2221

0 commit comments

Comments
 (0)