Skip to content

Commit dcd6e07

Browse files
authored
Merge pull request #142 from sanger-tol/dev
Dev2Main
2 parents f6e7148 + d7cf13c commit dcd6e07

File tree

12 files changed

+65
-43
lines changed

12 files changed

+65
-43
lines changed

modules.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
},
100100
"samtools/merge": {
101101
"branch": "master",
102-
"git_sha": "b2e78932ef01165fd85829513eaca29eff8e640a",
102+
"git_sha": "440edf75d8782913115a7b72a88392a227f72cc1",
103103
"installed_by": ["bam_samtools_merge_markdup", "modules"]
104104
},
105105
"samtools/sort": {
@@ -184,7 +184,7 @@
184184
},
185185
"samtools/mergedup": {
186186
"branch": "main",
187-
"git_sha": "2e28234fb0e2970767dab28310c7eb553ad40081",
187+
"git_sha": "55f3dd54f274c9648207a82bf68d257945d27053",
188188
"installed_by": ["bam_samtools_merge_markdup"]
189189
},
190190
"telomere/extract": {
@@ -208,12 +208,12 @@
208208
"sanger-tol": {
209209
"bam_samtools_merge_markdup": {
210210
"branch": "main",
211-
"git_sha": "2e28234fb0e2970767dab28310c7eb553ad40081",
211+
"git_sha": "55f3dd54f274c9648207a82bf68d257945d27053",
212212
"installed_by": ["cram_map_illumina_hic"]
213213
},
214214
"cram_map_illumina_hic": {
215215
"branch": "main",
216-
"git_sha": "2e28234fb0e2970767dab28310c7eb553ad40081",
216+
"git_sha": "55f3dd54f274c9648207a82bf68d257945d27053",
217217
"installed_by": ["subworkflows"]
218218
},
219219
"gap_finder": {

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

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

modules/nf-core/samtools/merge/meta.yml

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

modules/nf-core/samtools/merge/tests/main.nf.test

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

modules/sanger-tol/samtools/mergedup/main.nf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ process SAMTOOLS_MERGEDUP {
88
'community.wave.seqera.io/library/htslib_samtools:1.23--cde2c40a51d6f752' }"
99

1010
input:
11-
tuple val(meta) , path(input)
12-
tuple val(meta2), path(fasta), path(fai), path(gzi)
11+
tuple val(meta) , path(input_files, stageAs: "?/*"), path(index_files, stageAs: "?/*")
12+
tuple val(meta2), path(fasta), path(fai), path(gzi)
1313

1414
output:
1515
tuple val(meta), path("*.bam") , emit: bam, optional: true
@@ -32,9 +32,11 @@ process SAMTOOLS_MERGEDUP {
3232
"bam"
3333
"""
3434
samtools merge \\
35+
--threads ${task.cpus-1} \\
3536
${args} \\
3637
- \\
37-
${input} |\\
38+
${reference} \\
39+
${input_files} |\\
3840
samtools markdup \\
3941
-T ${prefix} \\
4042
-f ${prefix}.metrics \\

modules/sanger-tol/samtools/mergedup/meta.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ input:
4040
description: |
4141
Groovy Map containing sample information
4242
e.g. [ id:'test', single_end:false ]
43-
- input:
43+
- input_files:
4444
type: file
4545
description: BAM/CRAM/SAM files
4646
pattern: "*.{bam,cram,sam}"
4747
ontologies: []
48+
- index_files:
49+
type: file
50+
description: BAM/CRAM/SAM index
51+
pattern: "*.{bai,csi,crai}"
52+
ontologies: []
4853
- - meta2:
4954
type: map
5055
description: |

modules/sanger-tol/samtools/mergedup/tests/main.nf.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ nextflow_process {
3232
[
3333
file(params.modules_testdata_base_path + 'Undibacterium_unclassified/analysis/hic_mapping/41741_2.7.sub.cram.baUndUnlc1_hic_phased_hap1.2.bam', checkIfExists: true),
3434
file(params.modules_testdata_base_path + 'Undibacterium_unclassified/analysis/hic_mapping/41741_2.7.sub.cram.baUndUnlc1_hic_phased_hap1.3.bam', checkIfExists: true),
35-
]
35+
],
36+
[]
3637
])
3738
input[1] = Channel.of([[:],[],[],[]])
3839
"""
@@ -72,7 +73,8 @@ nextflow_process {
7273
[
7374
file(params.modules_testdata_base_path + 'Undibacterium_unclassified/analysis/hic_mapping/41741_2.7.sub.cram.baUndUnlc1_hic_phased_hap1.2.bam', checkIfExists: true),
7475
file(params.modules_testdata_base_path + 'Undibacterium_unclassified/analysis/hic_mapping/41741_2.7.sub.cram.baUndUnlc1_hic_phased_hap1.3.bam', checkIfExists: true),
75-
]
76+
],
77+
[]
7678
])
7779
input[1] = Channel.of([[:],[],[],[]])
7880
"""

modules/sanger-tol/samtools/mergedup/tests/main.nf.test.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@
6868
]
6969
}
7070
],
71+
"timestamp": "2026-02-09T15:16:40.761606",
7172
"meta": {
7273
"nf-test": "0.9.3",
7374
"nextflow": "25.10.3"
74-
},
75-
"timestamp": "2026-02-09T15:16:40.761606"
75+
}
7676
},
7777
"sarscov2 - bam": {
7878
"content": [
@@ -96,10 +96,10 @@
9696
]
9797
}
9898
],
99+
"timestamp": "2026-02-09T15:16:36.500954",
99100
"meta": {
100101
"nf-test": "0.9.3",
101102
"nextflow": "25.10.3"
102-
},
103-
"timestamp": "2026-02-09T15:16:36.500954"
103+
}
104104
}
105105
}

subworkflows/local/longread_coverage/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ workflow LONGREAD_COVERAGE {
5151
.map { bams ->
5252
tuple (
5353
[ id : bams.first().name.split('_').first() ], // Change sample ID
54-
bams
54+
bams,
55+
[]
5556
)
5657
}
5758
.set { collected_files_for_merge }

subworkflows/sanger-tol/bam_samtools_merge_markdup/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ workflow BAM_SAMTOOLS_MERGE_MARKDUP {
3636
.combine(ch_assemblies, by: 0)
3737
.combine(ch_fai_gzi, by: 0)
3838
.multiMap { meta, bams, assembly, fai, gzi ->
39-
bam: [ meta, bams ]
39+
bam: [ meta, bams, [] ]
4040
fasta: [ meta, assembly, fai, gzi ]
4141
}
4242

0 commit comments

Comments
 (0)