Skip to content

Commit 7f30dbf

Browse files
Merge pull request #581 from nf-core/bwamem_fix
bwamem_index fix
2 parents e51b3c0 + a717f8d commit 7f30dbf

File tree

68 files changed

+2015
-2548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2015
-2548
lines changed

.github/workflows/update-gpu-snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
env:
88
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
# renovate: datasource=github-releases depName=askimed/nf-test versioning=semver
10-
NFT_VER: "0.9.2"
10+
NFT_VER: "0.9.3"
1111
NXF_ANSI_LOG: false
1212
# renovate: datasource=github-releases depName=nextflow-io/nextflow versioning=semver
13-
NXF_VER: "24.10.5"
13+
NXF_VER: "25.04.0"
1414

1515
jobs:
1616
update-gpu-snapshot:

.nf-core.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ lint:
66
files_unchanged:
77
- docs/images/nf-core-methylseq_logo_light.png
88
- docs/images/nf-core-methylseq_logo_dark.png
9+
- assets/nf-core-methylseq_logo_light.png
910
modules_config: false
1011
nf_core_version: 3.5.1
1112
repository_type: pipeline

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Bug fixes & refactoring
99

1010
- 🐛 Fix error in `picard_bedtointervallist.config` [#566](https://github.com/nf-core/methylseq/pull/566)
11+
- 🐛 Fix error when using --aligner bwameth with samtools sort, the output bams will be labeled with prefix "${meta.id}.deduplicated.sorted" and published in the deduplication folder [#580](https://github.com/nf-core/methylseq/pull/581)
1112
- 🔧 Update Bismark to v0.25.1 [#569](https://github.com/nf-core/methylseq/pull/569)
1213
- 🔧 Update MultiQC module
1314

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1>
22
<picture>
3-
<source media="(prefers-color-scheme: dark)" srcset="docs/images/nf-core-methylseq-dark.png">
4-
<img alt="nf-core/methylseq" src="docs/images/nf-core-methylseq-light.png">
3+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/nf-core-methylseq_logo_dark.png">
4+
<img alt="nf-core/methylseq" src="docs/images/nf-core-methylseq_logo_light.png">
55
</picture>
66
</h1>
77

-12.5 KB
Loading

conf/modules/bwamem_align.config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
process {
2+
withName: BWA_MEM {
3+
ext.args = ''
4+
publishDir = [
5+
path: { "${params.outdir}/${params.aligner}/alignments" },
6+
pattern: "*.bam",
7+
mode: params.publish_dir_mode,
8+
enabled: params.save_align_intermeds
9+
]
10+
}
11+
}

conf/modules/bwameth_align.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
process {
22
withName: BWAMETH_ALIGN {
3-
cache = 'lenient' // This is set because in the module command the index files are touched so as to have bwameth not complain
43
ext.args = ''
54
publishDir = [
65
path: { "${params.outdir}/${params.aligner}/alignments" },

conf/modules/samtools_sort.config

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
11
process {
22
withName: SAMTOOLS_SORT {
3-
ext.prefix = params.skip_deduplication ? { "${meta.id}.sorted" } : { "${meta.id}.deduplicated.sorted" }
3+
ext.prefix = { "${meta.id}.sorted" }
44
publishDir = [
5-
[
6-
path: { "${params.outdir}/${params.aligner}/deduplicated/" },
7-
mode: params.publish_dir_mode,
8-
pattern: "*.deduplicated.sorted.bam"
9-
],
105
[
116
path: { "${params.outdir}/${params.aligner}/alignments/" },
127
mode: params.publish_dir_mode,
138
pattern: "*.sorted.bam",
14-
enabled: params.skip_deduplication
15-
],
16-
[
17-
path: { "${params.outdir}/${params.aligner}/deduplicated/" },
18-
mode: params.publish_dir_mode,
19-
pattern: "*markdup*.bam",
20-
enabled: params.save_align_intermeds
21-
],
22-
[
23-
path: { "${params.outdir}/${params.aligner}/alignments/" },
24-
mode: params.publish_dir_mode,
25-
pattern: "*.bam",
26-
enabled: params.save_align_intermeds
9+
enabled: params.skip_deduplication || params.save_align_intermeds
2710
]
2811
]
2912
}

conf/subworkflows/fastq_align_dedup_bismark.config

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,25 @@ includeConfig "../modules/bismark_methylationextractor.config"
66
includeConfig "../modules/bismark_coverage2cytosine.config"
77
includeConfig "../modules/bismark_report.config"
88
includeConfig "../modules/bismark_summary.config"
9+
10+
// Override SAMTOOLS_SORT for bismark workflow
11+
// In bismark, deduplication (BISMARK_DEDUPLICATE) happens BEFORE sorting,
12+
// so the BAM input to SAMTOOLS_SORT is already deduplicated when skip_deduplication is false
13+
process {
14+
withName: SAMTOOLS_SORT {
15+
ext.prefix = params.skip_deduplication ? { "${meta.id}.sorted" } : { "${meta.id}.deduplicated.sorted" }
16+
publishDir = [
17+
[
18+
path: { "${params.outdir}/${params.aligner}/deduplicated/" },
19+
mode: params.publish_dir_mode,
20+
pattern: "*.deduplicated.sorted.bam"
21+
],
22+
[
23+
path: { "${params.outdir}/${params.aligner}/alignments/" },
24+
mode: params.publish_dir_mode,
25+
pattern: "*.sorted.bam",
26+
enabled: params.skip_deduplication
27+
]
28+
]
29+
}
30+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
includeConfig "../modules/bwamem_align.config"
12
includeConfig "../modules/picard_addorreplacereadgroups.config"
2-
includeConfig "../modules/picard_removeduplicates.config"
3+
includeConfig "../modules/picard_markduplicates.config"
4+
includeConfig "../modules/samtools_index.config"

0 commit comments

Comments
 (0)