Skip to content

Commit 7c93679

Browse files
authored
Merge pull request #127 from nf-cmgg/dev
Release PR
2 parents 39f5c1e + f5e8598 commit 7c93679

23 files changed

Lines changed: 154 additions & 41 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## dev
77

8-
# v2.0.4
8+
## v2.0.5
9+
10+
- Panel coverage will now run all genelists' coverage analysis in one process per sample
11+
- Fix readgroup sample names for `snp_` prefixed samples
12+
- Edit `WGS` profile to include `samtools/sormadup` and enable UMI aware duplicate marking
13+
14+
## v2.0.4
915

1016
- Add flag to `snap` to allow for more expansion of compressed data
1117
- Parse readgroup samplenames for `snp_` prefixed samples

assets/multiqc_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
report_comment: >
2-
This report has been generated by the <a href="https://github.com/nf-cmgg/preprocessing/releases/tag/2.0.4/" target="_blank">nf-cmgg/preprocessing</a>
3-
analysis pipeline.
2+
This report has been generated by the <a href="https://github.com/nf-cmgg/preprocessing/releases/tag/2.0.5/"
3+
target="_blank">nf-cmgg/preprocessing</a> analysis pipeline.
44
report_section_order:
55
"nf-cmgg-preprocessing-methods-description":
66
order: -1000

conf/modules.config

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,13 @@ process {
209209
withName: ".*FASTQ_TO_CRAM:SAMTOOLS_SORMADUP" {
210210
ext.prefix = {"${meta.id}.merged"}
211211
ext.args5 = {[
212-
"--json",
213-
"-d 2500",
214-
"--write-index",
215-
"--output-fmt cram",
216-
"--output-fmt-option archive"
212+
"-s", // print some stats
213+
"--json", // output stats in json format for MultiQC
214+
"-d 2500", // The optical duplicate distance
215+
params.umi_aware ? "--barcode-name" : "", // Use the UMI/barcode embedded in the read name (eigth colon delimited part).
216+
"--write-index", // Write csi/crai index
217+
"--output-fmt cram", // Output format
218+
"--output-fmt-option archive" // Cram compression level
217219
].join(" ").trim()}
218220
publishDir = [
219221
[
@@ -269,7 +271,8 @@ process {
269271

270272
//// Samtools convert
271273
withName: ".*FASTQ_TO_CRAM:SAMTOOLS_CONVERT" {
272-
label = "process_medium"
274+
cpus = 8
275+
memory = 64.GB
273276
ext.args = {[
274277
"-C",
275278
"--output-fmt cram",
@@ -336,7 +339,7 @@ process {
336339
//// Picard
337340
withName: ".*PICARD.*" {
338341
memory = { 8.GB * task.attempt }
339-
ext.args = "--MAX_RECORDS_IN_RAM 10000000"
342+
ext.args = "--MAX_RECORDS_IN_RAM 15000000"
340343
}
341344

342345

conf/profiles/WGS.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
params {
22
aligner = "snap"
3+
markdup = "samtools"
4+
umi_aware = true
35
run_coverage = true
46
disable_picard_metrics = false
57
}

modules.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,28 +99,28 @@
9999
},
100100
"samtools/coverage": {
101101
"branch": "master",
102-
"git_sha": "b13f07be4c508d6ff6312d354d09f2493243e208",
102+
"git_sha": "2d20463181b1c38981a02e90d3084b5f9fa8d540",
103103
"installed_by": ["modules"],
104104
"patch": "modules/nf-core/samtools/coverage/samtools-coverage.diff"
105105
},
106106
"samtools/flagstat": {
107107
"branch": "master",
108-
"git_sha": "b13f07be4c508d6ff6312d354d09f2493243e208",
108+
"git_sha": "2d20463181b1c38981a02e90d3084b5f9fa8d540",
109109
"installed_by": ["modules"]
110110
},
111111
"samtools/idxstats": {
112112
"branch": "master",
113-
"git_sha": "b13f07be4c508d6ff6312d354d09f2493243e208",
113+
"git_sha": "2d20463181b1c38981a02e90d3084b5f9fa8d540",
114114
"installed_by": ["modules"]
115115
},
116116
"samtools/import": {
117117
"branch": "master",
118-
"git_sha": "b13f07be4c508d6ff6312d354d09f2493243e208",
118+
"git_sha": "2d20463181b1c38981a02e90d3084b5f9fa8d540",
119119
"installed_by": ["modules"]
120120
},
121121
"samtools/sormadup": {
122122
"branch": "master",
123-
"git_sha": "b13f07be4c508d6ff6312d354d09f2493243e208",
123+
"git_sha": "38f3b0200093498b70ac2d63a83eac5642e3c873",
124124
"installed_by": ["modules"],
125125
"patch": "modules/nf-core/samtools/sormadup/samtools-sormadup.diff"
126126
},
@@ -132,7 +132,7 @@
132132
},
133133
"samtools/stats": {
134134
"branch": "master",
135-
"git_sha": "b13f07be4c508d6ff6312d354d09f2493243e208",
135+
"git_sha": "2d20463181b1c38981a02e90d3084b5f9fa8d540",
136136
"installed_by": ["modules"],
137137
"patch": "modules/nf-core/samtools/stats/samtools-stats.diff"
138138
},

modules/local/panelcoverage/main.nf

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
process PANELCOVERAGE {
2-
tag "$meta.id - $genelist"
2+
tag "$meta.id"
33
label 'process_single'
44

55
conda "${moduleDir}/environment.yml"
@@ -8,7 +8,8 @@ process PANELCOVERAGE {
88
'biocontainers/bedtools:2.31.1--hf5e1c6e_1' }"
99

1010
input:
11-
tuple val(meta), path(perbase), path(perbase_index), path(genelist)
11+
tuple val(meta), path(perbase), path(perbase_index)
12+
path(genelists)
1213

1314
output:
1415
tuple val(meta), path("*.mosdepth.region.dist.txt"), emit: regiondist
@@ -20,7 +21,10 @@ process PANELCOVERAGE {
2021
script:
2122
def prefix = task.ext.prefix ?: "${meta.id}"
2223
"""
23-
cmgg_genelists regiondist --samplename ${prefix} --perbase ${perbase} --genelist ${genelist}
24+
for GENELIST in $genelists
25+
do
26+
cmgg_genelists regiondist --samplename ${prefix} --perbase ${perbase} --genelist \$GENELIST
27+
done
2428
2529
cat <<-END_VERSIONS > versions.yml
2630
"${task.process}":
@@ -32,7 +36,11 @@ process PANELCOVERAGE {
3236
stub:
3337
def prefix = task.ext.prefix ?: "${meta.id}"
3438
"""
35-
touch ${prefix}_genelist.mosdepth.region.dist.txt
39+
for GENELIST in $genelists
40+
do
41+
name=\$(basename \$GENELIST .bed)
42+
touch ${prefix}_\${name}.mosdepth.region.dist.txt
43+
done
3644
3745
cat <<-END_VERSIONS > versions.yml
3846
"${task.process}":

modules/nf-core/samtools/coverage/main.nf

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

modules/nf-core/samtools/flagstat/main.nf

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

modules/nf-core/samtools/idxstats/main.nf

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

modules/nf-core/samtools/import/main.nf

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

0 commit comments

Comments
 (0)