-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add new module: flumut #11662
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
EdoardoGiussani
wants to merge
7
commits into
master
Choose a base branch
from
flumut
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
Add new module: flumut #11662
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c5fc2bc
feat: added flumut module
EdoardoGiussani c577778
Merge branch 'master' into flumut
EdoardoGiussani b840ed2
fix: updated test snap
EdoardoGiussani cc40895
Bumped to version 0.6.5 of FluMut
EdoardoGiussani 238ecce
Merge branch 'master' into flumut
EdoardoGiussani 6c468ed
fixed lint errors
EdoardoGiussani e1d90fb
fix formatting
EdoardoGiussani 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::flumut=0.6.5" |
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,45 @@ | ||
| process FLUMUT_RUN { | ||
| tag "${meta.id}" | ||
| label 'process_single' | ||
|
|
||
| conda "${moduleDir}/environment.yml" | ||
| container "quay.io/biocontainers/flumut:0.6.5--pyhdfd78af_0" | ||
|
|
||
| input: | ||
| tuple val(meta), path(fasta) | ||
|
|
||
| output: | ||
| tuple val(meta), path("*.tsv"), emit: tsv | ||
| tuple val(meta), path("*.xlsm"), emit: xlsm | ||
|
|
||
| tuple val("${task.process}"), val('flumut'), eval("flumut --all-versions"), topic: versions, emit: versions_flumut | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| flumut \\ | ||
| ${args} \\ | ||
| -x ${prefix}.xlsm \\ | ||
| -m ${prefix}_markers.tsv \\ | ||
| -M ${prefix}_mutations.tsv \\ | ||
| -l ${prefix}_literature.tsv \\ | ||
| ${fasta} | ||
| """ | ||
|
|
||
| stub: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| echo ${args} | ||
|
|
||
| touch \\ | ||
| ${prefix}.xlsm \\ | ||
| ${prefix}_markers.tsv \\ | ||
| ${prefix}_mutations.tsv \\ | ||
| ${prefix}_literature.tsv | ||
| """ | ||
| } |
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,85 @@ | ||
| name: "flumut_run" | ||
| description: Run the FluMut tool to search for molecular markers with potential | ||
| impact on the biological characteristics of Influenza A viruses of the A(H5N1) | ||
| subtype. | ||
| keywords: | ||
| - FluMut | ||
| - mutations | ||
| - surveillance | ||
| - H5N1 | ||
| - Avian Influenza Virus | ||
| tools: | ||
| - "flumut": | ||
| description: "A tool to search for molecular markers with potential impact on | ||
| the biological characteristics of Influenza A viruses of the A(H5N1) subtype." | ||
| homepage: "https://github.com/izsvenezie-virology/FluMut" | ||
| documentation: "https://izsvenezie-virology.github.io/FluMut/" | ||
| tool_dev_url: "https://github.com/izsvenezie-virology/FluMut" | ||
| doi: "10.1093/ve/veaf011" | ||
| licence: | ||
| - "AGPL v3-or-later" | ||
| identifier: biotools:flumut | ||
| input: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - fasta: | ||
| type: file | ||
| description: The FASTA containing al the sequences to be analyzed | ||
| pattern: "*.{fa,fasta,fas}" | ||
| ontologies: | ||
| - edam: "http://edamontology.org/format_1929" | ||
| output: | ||
| tsv: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - "*.tsv": | ||
| type: file | ||
| description: TSV files containing results | ||
| pattern: "*.tsv" | ||
| ontologies: | ||
| - edam: "http://edamontology.org/format_3475" | ||
| xlsm: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1' ]` | ||
| - "*.xlsm": | ||
| type: file | ||
| description: Excel file containing results | ||
| pattern: "*.{xlsm}" | ||
| ontologies: | ||
| - edam: "http://edamontology.org/format_3468" | ||
| versions_flumut: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The name of the process | ||
| - flumut: | ||
| type: string | ||
| description: The name of the tool | ||
| - flumut --all-versions: | ||
| type: eval | ||
| description: The expression to obtain the version of the tool | ||
| topics: | ||
| versions: | ||
| - - ${task.process}: | ||
| type: string | ||
| description: The name of the process | ||
| - flumut: | ||
| type: string | ||
| description: The name of the tool | ||
| - flumut --all-versions: | ||
| type: eval | ||
| description: The expression to obtain the version of the tool | ||
| authors: | ||
| - "@EdoardoGiussani" | ||
| - "@AlexSartori" | ||
| maintainers: | ||
| - "@EdoardoGiussani" | ||
| - "@AlexSartori" |
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,61 @@ | ||
| nextflow_process { | ||
|
|
||
| name "Test Process FLUMUT_RUN" | ||
| script "../main.nf" | ||
| process "FLUMUT_RUN" | ||
|
|
||
| tag "modules" | ||
| tag "modules_nfcore" | ||
| tag "flumut" | ||
| tag "flumut/run" | ||
|
|
||
| test("H5N1_2.3.4.4b_Italy - fasta") { | ||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test' ], | ||
| file(params.modules_testdata_base_path + 'genomics/virus/influenza/fasta/H5N1_2.3.4.4b_Italy.fa', checkIfExists: true), | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert process.success }, | ||
| { assert snapshot( | ||
| process.out.tsv, | ||
| file(process.out.xlsm[0][1]).name, | ||
| process.out.findAll { key, val -> key.startsWith('versions') } | ||
| ).match() } | ||
| ) | ||
| } | ||
|
|
||
| } | ||
|
|
||
| test("H5N1_2.3.4.4b_Italy - fasta - stub") { | ||
|
|
||
| options "-stub" | ||
|
|
||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test' ], | ||
| file(params.modules_testdata_base_path + 'genomics/virus/influenza/fasta/H5N1_2.3.4.4b_Italy.fa', checkIfExists: true), | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert process.success }, | ||
| { assert snapshot(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,98 @@ | ||
| { | ||
| "H5N1_2.3.4.4b_Italy - fasta - stub": { | ||
| "content": [ | ||
| { | ||
| "0": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| [ | ||
| "test_literature.tsv:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "test_markers.tsv:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "test_mutations.tsv:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ] | ||
| ], | ||
| "1": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.xlsm:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ], | ||
| "2": [ | ||
| [ | ||
| "FLUMUT_RUN", | ||
| "flumut", | ||
| "FluMut: 0.6.5\nFluMutDB: 6.6, released on 2026-03-17" | ||
| ] | ||
| ], | ||
| "tsv": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| [ | ||
| "test_literature.tsv:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "test_markers.tsv:md5,d41d8cd98f00b204e9800998ecf8427e", | ||
| "test_mutations.tsv:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ] | ||
| ], | ||
| "versions_flumut": [ | ||
| [ | ||
| "FLUMUT_RUN", | ||
| "flumut", | ||
| "FluMut: 0.6.5\nFluMutDB: 6.6, released on 2026-03-17" | ||
| ] | ||
| ], | ||
| "xlsm": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.xlsm:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-05-22T12:11:02.098163186", | ||
| "meta": { | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "25.04.6" | ||
| } | ||
| }, | ||
| "H5N1_2.3.4.4b_Italy - fasta": { | ||
| "content": [ | ||
| [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| [ | ||
| "test_literature.tsv:md5,8999b029cb5cfcde7a4281cbcb3285c9", | ||
| "test_markers.tsv:md5,cbdc33bff11829875d7a88c3bd8d0303", | ||
| "test_mutations.tsv:md5,5c2d23a12a8fe807c237d952753daf3a" | ||
| ] | ||
| ] | ||
| ], | ||
| "test.xlsm", | ||
| { | ||
| "versions_flumut": [ | ||
| [ | ||
| "FLUMUT_RUN", | ||
| "flumut", | ||
| "FluMut: 0.6.5\nFluMutDB: 6.6, released on 2026-03-17" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-05-22T12:10:54.114556478", | ||
| "meta": { | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "25.04.6" | ||
| } | ||
| } | ||
| } | ||
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.
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.
This is not correct.