Repository navigation
Add module: modkit/localize #11120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add module: modkit/localize #11120
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
58263ab
feat: add modkit/localize module
sahuno 2a7de47
Merge branch 'master' into add-modkit-localize
sahuno 369669c
fix(modkit/localize): sanitizeOutput snapshots + bump ont-modkit to 0…
sahuno 924a127
Merge remote-tracking branch 'origin/master' into add-modkit-localize
sahuno 4bb8840
fix(modkit/localize): address review - format, ontologies, wire log o…
sahuno 2cae481
test(modkit/localize): regenerate snapshot for the log output
sahuno ceaa12e
Merge remote-tracking branch 'origin/master' into add-modkit-localize
sahuno 8d7ae2e
modkit/localize: switch to Seqera Containers and add conda lock files
sahuno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
modules/nf-core/modkit/localize/.conda-lock/linux_amd64-bd-0c623277f8775a30_1.txt
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
113 changes: 113 additions & 0 deletions
113
modules/nf-core/modkit/localize/.conda-lock/linux_arm64-bd-b0cf3a2b01aa496e_1.txt
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
|
sahuno marked this conversation as resolved.
Resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
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 | ||
| """ | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.