Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions modules/nf-core/modkit/localize/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
channels:
- conda-forge
- bioconda
dependencies:
- bioconda::ont-modkit=0.6.4
55 changes: 55 additions & 0 deletions modules/nf-core/modkit/localize/main.nf
Comment thread
sahuno marked this conversation as resolved.
Resolved
Comment thread
sahuno marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright (c) the nf-core community under an open-source MIT license.
// See https://github.com/nf-core/modules for full license, file patching instructions and upstream contributing.

process MODKIT_LOCALIZE {
tag "${meta.id}"
label 'process_high'

conda "${moduleDir}/environment.yml"
container "${workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/65/65e515e445d31be38188af5fe636e71af18abc601afacf80e9021a4752da6332/data'
: 'community.wave.seqera.io/library/ont-modkit:0.6.4--0c623277f8775a30'}"

input:
tuple val(meta), path(bedmethyl), path(tbi)
tuple val(meta2), path(sizes)
tuple val(meta3), path(regions)

output:
tuple val(meta), path("*.tsv"), emit: tsv
tuple val(meta), path("*.html"), emit: chart
tuple val(meta), path("*.log"), emit: log
tuple val("${task.process}"), val('modkit'), eval("modkit --version | sed 's/modkit //'"), emit: versions_modkit, topic: versions
Comment thread
famosab marked this conversation as resolved.
Resolved

when:
task.ext.when == null || task.ext.when

script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def chart = "--chart ${prefix}.localize.html --name ${prefix}"
"""
modkit \\
localize \\
${args} \\
--threads ${task.cpus} \\
--genome-sizes ${sizes} \\
--regions ${regions} \\
${chart} \\
--log-filepath ${prefix}.localize.log \\
--force \\
-o ${prefix}.localize.tsv \\
${bedmethyl}
"""

stub:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
echo ${args}

touch ${prefix}.localize.tsv
touch ${prefix}.localize.html
touch ${prefix}.localize.log
"""
}
Loading
Loading