-
Notifications
You must be signed in to change notification settings - Fork 958
Unify msa modules #9539
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
Unify msa modules #9539
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5950535
add mafft_align subworkflow to prepare channels for mafft/align like …
mirpedrol 533da66
default output format fasta for tcoffee align and regressive to match…
mirpedrol 99a7c76
[automated] Fix linting with Prettier
nf-core-bot 1f247c0
Update subworkflows/nf-core/mafft_align/main.nf
mirpedrol 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
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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| process { | ||
| ext.args = { "-output fasta_aln -out_lib=sample_lib1.tc_lib" } | ||
| ext.args = { "-out_lib=sample_lib1.tc_lib" } | ||
| } |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| process { | ||
|
|
||
| withName: "TCOFFEE_ALIGN"{ | ||
| ext.args = { "-output fasta_aln -out_lib sample_lib1.tc_lib" } | ||
| ext.args = { "-out_lib sample_lib1.tc_lib" } | ||
| } | ||
|
|
||
| } |
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,16 @@ | ||
| include { MAFFT_ALIGN as MAFFT_ALIGN_MODULE } from '../../../modules/nf-core/mafft/align/main' | ||
|
|
||
| workflow MAFFT_ALIGN { | ||
|
|
||
| take: | ||
| ch_fasta // channel: [ val(meta), fasta ] | ||
|
|
||
| main: | ||
|
|
||
| MAFFT_ALIGN_MODULE ( ch_fasta, [[], []], [[], []], [[], []], [[], []], [[], []], [] ) | ||
|
|
||
| emit: | ||
| // TODO nf-core: edit emitted channels | ||
| alignment = MAFFT_ALIGN_MODULE.out.fas // channel: [ val(meta), *.fas ] | ||
| versions = MAFFT_ALIGN_MODULE.out.versions // channel: [ versions.yml ] | ||
| } | ||
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,60 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/subworkflows/yaml-schema.json | ||
| name: "mafft_align" | ||
| description: Prepare channels for running MAFFT/align | ||
| keywords: | ||
| - msa | ||
| - mafft | ||
| - align | ||
| components: | ||
| - mafft/align | ||
| input: | ||
| - ch_fasta: | ||
| type: file | ||
| description: | | ||
| The input channel containing the FASTA files | ||
| pattern: "*.{bam/cram/sam}" | ||
| structure: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1', single_end:false ]` | ||
| - fasta: | ||
| type: file | ||
| description: Input sequences in FASTA format | ||
| pattern: "*.{fa,fasta}" | ||
| ontologies: | ||
| - edam: http://edamontology.org/format_1929 | ||
| output: | ||
| - alignment: | ||
| type: file | ||
| description: Channel containing the alignment file in fasta format. | ||
| structure: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'test']` | ||
| - "*.aln.gz": | ||
| type: file | ||
| description: Alignment file, in FASTA format. | ||
| pattern: "*.aln.gz" | ||
| ontologies: | ||
| - edam: http://edamontology.org/format_1984 | ||
| - versions: | ||
| type: file | ||
| description: Channel containing the software versions YAML file | ||
| structure: | ||
| - versions.yml: | ||
| type: file | ||
| description: File containing software versions | ||
| pattern: "versions.yml" | ||
| ontologies: | ||
| - edam: http://edamontology.org/format_3750 # YAML | ||
|
|
||
| authors: | ||
| - "@mirpedrol" | ||
| maintainers: | ||
| - "@mirpedrol" | ||
| - "@luisas" | ||
| - "@JoseEspinosa" |
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,36 @@ | ||
| nextflow_workflow { | ||
|
|
||
| name "Test Subworkflow MAFFT_ALIGN" | ||
| script "../main.nf" | ||
| workflow "MAFFT_ALIGN" | ||
|
|
||
| tag "subworkflows" | ||
| tag "subworkflows_nfcore" | ||
| tag "subworkflows/mafft_align" | ||
| tag "mafft" | ||
| tag "mafft/align" | ||
|
|
||
|
|
||
| test("seatoxin-ref - fasta") { | ||
|
|
||
| when { | ||
| workflow { | ||
| """ | ||
| input[0] = [ | ||
| [ [ id:'test' ] ], // meta map | ||
| file(params.modules_testdata_base_path + 'genomics/eukaryotes/anemonia_sulcata/seatoxin-ref.aln', checkIfExists: true), | ||
| ] | ||
| """ | ||
| } | ||
| } | ||
| then { | ||
| assert workflow.success | ||
| assertAll( | ||
| { assert snapshot( | ||
| workflow.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,39 @@ | ||
| { | ||
| "seatoxin-ref - fasta": { | ||
| "content": [ | ||
| { | ||
| "0": [ | ||
| [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| } | ||
| ], | ||
| "[test].fas:md5,d443a4d46c7d85f5ea5f5f73148c6f34" | ||
| ] | ||
| ], | ||
| "1": [ | ||
| "versions.yml:md5,e84c35bc0c2b5e69b0e70e5063a04b00" | ||
| ], | ||
| "alignment": [ | ||
| [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| } | ||
| ], | ||
| "[test].fas:md5,d443a4d46c7d85f5ea5f5f73148c6f34" | ||
| ] | ||
| ], | ||
| "versions": [ | ||
| "versions.yml:md5,e84c35bc0c2b5e69b0e70e5063a04b00" | ||
| ] | ||
| } | ||
| ], | ||
| "meta": { | ||
| "nf-test": "0.9.2", | ||
| "nextflow": "25.04.8" | ||
| }, | ||
| "timestamp": "2025-12-10T10:56:30.188643" | ||
| } | ||
| } |
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.