Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions modules/nf-core/modkit/bedmethyltobigwig/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ process MODKIT_BEDMETHYLTOBIGWIG {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def mods = modcodes instanceof List ? modcodes.join(',') : modcodes
input_cmd = bedmethyl.getName().endsWith('.gz') ? "gzip -cd" : "cat"
"""
modkit bedmethyl tobigwig \\
$input_cmd $bedmethyl |\\
modkit bedmethyl tobigwig \\
$args \\
--nthreads $task.cpus \\
--sizes $chromsizes \\
--mod-codes $mods \\
$bedmethyl \\
- \\
${prefix}.bw

cat <<-END_VERSIONS > versions.yml
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/modkit/bedmethyltobigwig/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ input:
- bedmethyl:
type: file
description: bedMethyl file
pattern: "*.{bed}"
pattern: "*.{bed,bed.gz}"
ontologies:
- edam: "http://edamontology.org/format_3003" # BED
- - meta2:
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/modkit/bedmethyltobigwig/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ nextflow_process {
}
}

test("homo sapiens - bedmethyl, fai, string") {
test("homo sapiens - compressed bedmethyl, fai, string") {

when {
process {
"""
input[0] = TABIX_BGZIP.out.output
input[0] = MODKIT_PILEUP.out.bedgz
input[1] = [
[ id : 'hg38' ],
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta.fai', checkIfExists: true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
"timestamp": "2025-12-11T14:17:52.811754475"
},
"homo sapiens - bedmethyl, fai, string": {
"homo sapiens - compressed bedmethyl, fai, string": {
"content": [
{
"0": [
Expand Down Expand Up @@ -94,8 +94,8 @@
],
"meta": {
"nf-test": "0.9.3",
"nextflow": "25.10.2"
"nextflow": "25.04.2"
},
"timestamp": "2025-12-11T14:18:02.079953932"
"timestamp": "2025-12-19T10:25:49.934420699"
}
}
Loading