-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add new module: octopusv/stat #11719
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
Open
manascripts
wants to merge
5
commits into
nf-core:master
Choose a base branch
from
manascripts:octopusv-stat
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0fea771
Add new module: octopusv/stat
manascripts 9d5c8e8
add description to meta.yml
manascripts 00ccb02
update tests + bump version
manascripts 257b9d5
rename test.config to nextflow.config
manascripts 693b80f
Merge branch 'master' into octopusv-stat
manascripts 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
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::octopusv=0.3.3" |
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,39 @@ | ||
| process OCTOPUSV_STAT { | ||
| tag "$meta.id" | ||
| label 'process_single' | ||
|
|
||
| conda "${moduleDir}/environment.yml" | ||
| container "${ workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container ? | ||
| 'https://depot.galaxyproject.org/singularity/octopusv:0.3.3--pyhdfd78af_0' : | ||
| 'quay.io/biocontainers/octopusv:0.3.3--pyhdfd78af_0' }" | ||
|
|
||
| input: | ||
| tuple val(meta), path(svcf) | ||
|
|
||
| output: | ||
| tuple val(meta), path("*.txt"), emit: txt | ||
| tuple val(meta), path("*.html"), emit: html, optional: true | ||
| tuple val("${task.process}"), val('octopusv'), eval("python -c \"import importlib.metadata as m; print(m.version('octopusv'))\""), emit: versions_octopusv, topic: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| octopusv stat \\ | ||
| ${svcf} \\ | ||
| --output-file ${prefix}.txt \\ | ||
| ${args} | ||
| """ | ||
|
|
||
| stub: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| echo $args | ||
|
|
||
| touch ${prefix}.txt | ||
| """ | ||
| } |
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,80 @@ | ||
| name: "octopusv_stat" | ||
| description: Summarize structural variant statistics from octopusv SVCF files | ||
| keywords: | ||
| - vcf summary | ||
| - structural variant | ||
| - statistics | ||
| tools: | ||
| - "octopusv": | ||
| description: "End-to-end structural variant post-processing: standardize, merge, | ||
| compare, and export SVs." | ||
| homepage: "https://github.com/ylab-hi/OctopuSV" | ||
| documentation: "https://github.com/ylab-hi/OctopuSV" | ||
| tool_dev_url: "https://github.com/ylab-hi/octopusV" | ||
| doi: "10.1093/bioinformatics/btaf599" | ||
| licence: | ||
| - "MIT" | ||
| identifier: "" | ||
| input: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - svcf: | ||
| type: file | ||
| description: SVCF file from octopusv | ||
| pattern: "*.svcf" | ||
| ontologies: | ||
| - edam: "http://edamontology.org/format_3016" | ||
| output: | ||
| txt: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - "*.txt": | ||
| type: file | ||
| description: A TXT file containing the statistics of the structural | ||
| variants in the input VCF | ||
| pattern: "*.txt" | ||
| ontologies: | ||
| - edam: "http://edamontology.org/format_2330" | ||
| html: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - "*.html": | ||
| type: file | ||
| description: An HTML report with SV statistics | ||
| pattern: "*.html" | ||
| ontologies: | ||
| - edam: "http://edamontology.org/format_2331" | ||
| versions_octopusv: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The name of the process | ||
| - octopusv: | ||
| type: string | ||
| description: The name of the tool | ||
| - python -c "import importlib.metadata as m; print(m.version('octopusv'))": | ||
| type: eval | ||
| description: The expression to obtain the version of the tool | ||
| topics: | ||
| versions: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The name of the process | ||
| - octopusv: | ||
| type: string | ||
| description: The name of the tool | ||
| - python -c "import importlib.metadata as m; print(m.version('octopusv'))": | ||
| type: eval | ||
| description: The expression to obtain the version of the tool | ||
| authors: | ||
| - "@manascripts" | ||
| maintainers: | ||
| - "@manascripts" |
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,63 @@ | ||
| nextflow_process { | ||
|
|
||
| name "Test Process OCTOPUSV_STAT" | ||
| script "../main.nf" | ||
| process "OCTOPUSV_STAT" | ||
| config "./nextflow.config" | ||
|
|
||
| tag "modules" | ||
| tag "modules_nfcore" | ||
| tag "octopusv" | ||
| tag "octopusv/stat" | ||
|
|
||
| test("homo_sapiens - txt + html") { | ||
|
|
||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test' ], | ||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/vcf/octopusv/sk-n-as-severus-ont.svcf', checkIfExists: true) | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert process.success }, | ||
| { assert file(process.out.html.get(0).get(1)).name == "test.html" }, | ||
| { assert snapshot( | ||
| process.out.txt, | ||
| process.out.findAll { key, val -> key.startsWith('versions') } | ||
| ).match() } | ||
| ) | ||
| } | ||
|
|
||
| } | ||
|
|
||
| test("homo_sapiens - txt - stub") { | ||
|
|
||
| options "-stub" | ||
|
|
||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test' ], | ||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/vcf/octopusv/sk-n-as-severus-ont.svcf', checkIfExists: true) | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assert process.success | ||
| assertAll( | ||
| { assert snapshot(sanitizeOutput(process.out)).match() } | ||
| ) | ||
| } | ||
|
|
||
| } | ||
|
|
||
| } |
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,57 @@ | ||
| { | ||
| "homo_sapiens - txt + html": { | ||
| "content": [ | ||
| [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.txt:md5,8ecae13307448ee0c11882909f554507" | ||
| ] | ||
| ], | ||
| { | ||
| "versions_octopusv": [ | ||
| [ | ||
| "OCTOPUSV_STAT", | ||
| "octopusv", | ||
| "0.3.3" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-05-26T17:05:05.640088507", | ||
| "meta": { | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "25.10.4" | ||
| } | ||
| }, | ||
| "homo_sapiens - txt - stub": { | ||
| "content": [ | ||
| { | ||
| "html": [ | ||
|
|
||
| ], | ||
| "txt": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ], | ||
| "versions_octopusv": [ | ||
| [ | ||
| "OCTOPUSV_STAT", | ||
| "octopusv", | ||
| "0.3.3" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-05-26T17:05:12.720177373", | ||
| "meta": { | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "25.10.4" | ||
| } | ||
| } | ||
| } |
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,5 @@ | ||
| process { | ||
| withName: 'OCTOPUSV_STAT' { | ||
| ext.args = "--report" | ||
| } | ||
| } |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the standard is to call this file nextflow.config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, changed it!