Commit 61ce58a
feat(fastq_qc_trim_filter_setstrandedness): Add Bowtie2 as alternative rRNA removal tool (#9474)
* feat(fastq_qc_trim_filter_setstrandedness): Add Bowtie2 as alternative rRNA removal tool
Add bowtie2 as a third option for rRNA removal alongside sortmerna and ribodetector.
Implementation details:
- Paired-end: Uses samtools view -f 12 to filter pairs where BOTH mates are unmapped
(bowtie2's --un-conc-gz incorrectly includes pairs where one mate aligned)
- Single-end: Uses bowtie2's --un-gz directly via save_unaligned=true
- Converts U→T in rRNA reference FASTAs (RNA sequences contain U, reads contain T)
Changes:
- Add BOWTIE2_ALIGN, BOWTIE2_ALIGN_PE, BOWTIE2_BUILD module imports
- Add SAMTOOLS_VIEW and SAMTOOLS_FASTQ for paired-end filtering
- Add ch_bowtie2_index input and make_bowtie2_index parameter
- Update meta.yml with bowtie2 in ribo_removal_tool enum
- Add paired-end and single-end bowtie2 test cases
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* refactor(fastq_qc_trim_filter_setstrandedness): Extract rRNA removal to fastq_remove_rrna subworkflow
Factor out rRNA removal logic (sortmerna, ribodetector, bowtie2) into
a dedicated fastq_remove_rrna subworkflow for better modularity and
reusability.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Add snapshot
* fix(tests): Add missing tags for linting compliance
- Add cat/fastq tag to fastq_remove_rrna tests
- Add subworkflows/fastq_remove_rrna tag to fastq_qc_trim_filter_setstrandedness tests
- Remove obsolete module tags (now covered by subworkflow)
- Add test snapshots for fastq_remove_rrna
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* bump ribodetector
* Update ribodetector snaps
* Fix snapshot instability
* fix(ribodetector): Update to topics syntax for version collection
- Convert ribodetector module to topics syntax for version collection
- Update container to Wave container for ribodetector 0.3.2
- Remove .out.versions access for modules using topics
- Update test snapshots for topic-based version format
- Clean up sed syntax and fix meta.yml quoting
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent 0b24358 commit 61ce58a
File tree
15 files changed
+1057
-198
lines changed- modules/nf-core/ribodetector
- tests
- subworkflows/nf-core
- fastq_qc_trim_filter_setstrandedness
- tests
- fastq_remove_rrna
- tests
15 files changed
+1057
-198
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
50 | 45 | | |
51 | 46 | | |
52 | 47 | | |
53 | | - | |
| 48 | + | |
54 | 49 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 50 | | |
61 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 2 | | |
15 | 3 | | |
16 | 4 | | |
| |||
36 | 24 | | |
37 | 25 | | |
38 | 26 | | |
39 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
40 | 32 | | |
41 | 33 | | |
42 | 34 | | |
| |||
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
62 | | - | |
63 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
Lines changed: 18 additions & 84 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 84 | | |
111 | 85 | | |
112 | 86 | | |
| |||
116 | 90 | | |
117 | 91 | | |
118 | 92 | | |
| 93 | + | |
119 | 94 | | |
120 | | - | |
| 95 | + | |
121 | 96 | | |
122 | 97 | | |
123 | 98 | | |
| |||
129 | 104 | | |
130 | 105 | | |
131 | 106 | | |
| 107 | + | |
132 | 108 | | |
133 | 109 | | |
134 | 110 | | |
| |||
138 | 114 | | |
139 | 115 | | |
140 | 116 | | |
141 | | - | |
| 117 | + | |
142 | 118 | | |
143 | 119 | | |
144 | 120 | | |
| |||
294 | 270 | | |
295 | 271 | | |
296 | 272 | | |
297 | | - | |
| 273 | + | |
298 | 274 | | |
299 | 275 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
352 | 285 | | |
353 | | - | |
354 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
355 | 289 | | |
356 | 290 | | |
357 | 291 | | |
| |||
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
| |||
79 | 74 | | |
80 | 75 | | |
81 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | | - | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
140 | 147 | | |
141 | 148 | | |
142 | 149 | | |
143 | | - | |
| 150 | + | |
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| |||
0 commit comments