forked from nf-core/multiplesequencealign
-
Notifications
You must be signed in to change notification settings - Fork 1
POC using module classes v2 #6
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
mirpedrol
wants to merge
9
commits into
dev
Choose a base branch
from
poc-classes-2
base: dev
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
9 commits
Select commit
Hold shift + click to select a range
7820888
remove local align swf
mirpedrol fa6667b
install class swf
mirpedrol bc5a5e0
first try to use classes - not tested
mirpedrol 7856828
add test toolshit to test with classes
mirpedrol 2b5e18c
fix test toolsheet and ch_tools
mirpedrol bc68266
replace old class subworkflows by new using nf-core modules
mirpedrol 6736d05
Merge branch 'dev' into poc-classes-2
mirpedrol 89324e0
resolve duplications from modules.config
mirpedrol 021937e
fix enum in schema_tools.json and basic first test with test_toolshee…
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
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| guidetree,args_guidetree,treealign,args_treealign,alignment,args_alignment | ||
| ,,,,clustalo_align, | ||
| ,,,,famsa_align, | ||
| ,,,,kalign_align, | ||
| ,,,,learnmsa_align, | ||
| ,,,,magus_align, | ||
| ,,,,muscle5_super5, | ||
| ,,,,tcoffee_align, | ||
| famsa_guidetree,-gt upgma -medoidtree,famsa_align, | ||
| famsa_guidetree,,magus_align, |
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 @@ | ||
| tree,args_tree,aligner,args_aligner | ||
| tree,args_guidetree,aligner,args_aligner | ||
| FAMSA,,FAMSA, | ||
| ,,MAFFT,--dpparttree |
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 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 |
|---|---|---|
|
|
@@ -64,18 +64,18 @@ | |
| } | ||
|
|
||
| // | ||
| // Tree building | ||
| // Tree building (guidetree) | ||
| // | ||
|
|
||
| withName: "CLUSTALO_GUIDETREE|FAMSA_GUIDETREE|MAFFT_GUIDETREE" { | ||
| withName: "CLUSTALO_GUIDETREE|FAMSA_GUIDETREE|MAGUS_GUIDETREE" { | ||
| tag = { | ||
| [ | ||
| "${meta.id}", | ||
| meta.args_tree ? "args: ${meta.args_tree_clean}" : "" | ||
| meta.args_guidetree ? "args: ${meta.args_guidetree}" : "" | ||
| ].join(' ').trim() | ||
| } | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}" } | ||
| ext.args = { "${meta.args_tree}" == "null" ? '' : "${meta.args_tree}" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}" } | ||
| ext.args = { "${meta.args_guidetree}" == "null" ? '' : "${meta.args_guidetree}" } | ||
| publishDir = [ | ||
| path: { "${params.outdir}/trees/${meta.id}" }, | ||
| mode: params.publish_dir_mode, | ||
|
|
@@ -84,65 +84,42 @@ | |
| } | ||
|
|
||
| // | ||
| // alignments | ||
| // Alignment from a tree (treealign) | ||
| // | ||
|
|
||
| withName: "CREATE_TEMPLATE" { | ||
| ext.prefix = { "${meta.id}" } | ||
| } | ||
| withName: "CLUSTALO_ALIGN|FAMSA_ALIGN|FOLDMASON_ALIGN|KALIGN_ALIGN|MAFFT_ALIGN|MAGUS_ALIGN|MUSCLE5_ALIGN|REGRESSIVE_ALIGN|TCOFFEE_ALIGN|TCOFFEE3D_ALIGN|UPP_ALIGN" { | ||
| withName: "NFCORE_MULTIPLESEQUENCEALIGN:MULTIPLESEQUENCEALIGN:MSA_TREEALIGN:CLUSTALO_ALIGN|FAMSA_ALIGN|MAGUS_ALIGN|TCOFFEE_ALIGN"{ | ||
| tag = { | ||
| [ | ||
| "${meta.id}", | ||
| meta.tree ? "tree: ${meta.tree}" : "", | ||
| meta.args_tree ? "argstree: ${meta.args_tree}" : "", | ||
| meta.args_aligner ? "args: ${meta.args_aligner_clean}" : "" | ||
| meta.args_treealign ? "args: ${meta.args_treealign}" : "" | ||
| ].join(' ').trim() | ||
| } | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}" } | ||
| ext.args = { "${meta.args_aligner}" == "null" ? '' : "${meta.args_aligner}" } | ||
| if (params.skip_compression || (params.skip_eval && !params.build_consensus)) { | ||
| publishDir = [ | ||
| path: { "${params.outdir}/alignments/${meta.id}" }, | ||
| mode: params.publish_dir_mode, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
| ext.prefix = { "${meta.id}_${meta.treealign}-args-${meta.args_treealign_clean}_${meta.guidetree}-args-${meta.args_guidetree_clean}" } | ||
| ext.args = { "${meta.args_treealign}" == "null" ? '' : "${meta.args_treealign}" } | ||
| publishDir = [ | ||
| path: { "${params.outdir}/alignment/${meta.id}" }, | ||
| mode: params.publish_dir_mode, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
|
|
||
| withName: "LEARNMSA_ALIGN" { | ||
| tag = { | ||
| [ | ||
| "${meta.id}", | ||
| meta.tree ? "tree: ${meta.tree}" : "", | ||
| meta.args_tree ? "argstree: ${meta.args_tree}" : "", | ||
| meta.args_aligner ? "args: ${meta.args_aligner_clean}" : "" | ||
| ].join(' ').trim() | ||
| } | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}" } | ||
| ext.args = { "${meta.args_aligner}" == "null" ? '' : "${meta.args_aligner}" } | ||
| // | ||
| // alignments | ||
| // | ||
|
|
||
| if(params.skip_compression){ | ||
| publishDir = [ | ||
| path: { "${params.outdir}/alignments/${meta.id}" }, | ||
| mode: params.publish_dir_mode, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
| withName: "CREATE_TEMPLATE" { | ||
| ext.prefix = { "${meta.id}" } | ||
| } | ||
|
|
||
| withName: "PIGZ_COMPRESS_LEARNMSA"{ | ||
| withName: "NFCORE_MULTIPLESEQUENCEALIGN:MULTIPLESEQUENCEALIGN:MSA_ALIGNMENT:CLUSTALO_ALIGN|FAMSA_ALIGN|LEARNMSA_ALIGN|KALIGN_ALIGN|MUSCLE5_SUPER5|MAGUS_ALIGN|TCOFFEE_ALIGN" { | ||
| tag = { | ||
|
mirpedrol marked this conversation as resolved.
|
||
| [ | ||
| "${meta.id}", | ||
| meta.tree ? "tree: ${meta.tree}" : "", | ||
| meta.args_tree ? "argstree: ${meta.args_tree}" : "", | ||
| meta.args_aligner ? "args: ${meta.args_aligner}" : "" | ||
| meta.args_aligner ? "args: ${meta.args_alignment_clean}" : "" | ||
| ].join(' ').trim() | ||
| } | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}" } | ||
| ext.args = { "${meta.args_aligner}" == "null" ? '' : "${meta.args_aligner}" } | ||
|
|
||
| ext.prefix = { "${meta.id}_${meta.alignment}-args-${meta.args_alignment_clean}" } | ||
| ext.args = { "${meta.args_alignment}" == "null" ? '' : "${meta.args_alignment}" } | ||
| publishDir = [ | ||
| path: { "${params.outdir}/alignments/${meta.id}" }, | ||
| mode: params.publish_dir_mode, | ||
|
|
@@ -156,11 +133,11 @@ | |
| [ | ||
| "${meta.id}", | ||
| meta.tree ? "tree: ${meta.tree}" : "", | ||
| meta.args_tree ? "argstree: ${meta.args_tree}" : "", | ||
| meta.args_guidetree ? "argstree: ${meta.args_guidetree}" : "", | ||
| meta.args_aligner ? "args: ${meta.args_aligner}" : "" | ||
| ].join(' ').trim() | ||
| } | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}" } | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The name of the files is used as a tag and this info is used for the shiny and final stats. The structure doesn't change so it should work as it is. |
||
| ext.args = { "${meta.args_aligner}" == "null" ? '' : "${meta.args_aligner}" } | ||
| if(params.skip_compression){ | ||
| publishDir = [ | ||
|
|
@@ -215,21 +192,21 @@ | |
| // | ||
|
|
||
| withName: 'PARSE_IRMSD' { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}_irmsd" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}_irmsd" } | ||
| } | ||
|
|
||
| withName: 'TCOFFEE_ALNCOMPARE_SP' { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}_sp" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}_sp" } | ||
| ext.args = "-compare_mode sp" | ||
| } | ||
|
|
||
| withName: 'TCOFFEE_ALNCOMPARE_TC' { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}_tc" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}_tc" } | ||
| ext.args = "-compare_mode tc" | ||
| } | ||
|
|
||
| withName: 'TCOFFEE_IRMSD' { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}_irmsd" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}_irmsd" } | ||
| publishDir = [ | ||
| path: { "${params.outdir}/evaluation/${task.process.tokenize(':')[-1].toLowerCase()}" }, | ||
| mode: params.publish_dir_mode, | ||
|
|
@@ -239,7 +216,7 @@ | |
| } | ||
|
|
||
| withName: "CALC_GAPS" { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}_gaps" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}_gaps" } | ||
| } | ||
|
|
||
| withName: "CONCAT_IRMSD" { | ||
|
|
@@ -263,7 +240,7 @@ | |
| } | ||
|
|
||
| withName: 'TCOFFEE_TCS' { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}_tcs" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}_tcs" } | ||
| publishDir = [ | ||
| path: { "${params.outdir}/evaluation/${task.process.tokenize(':')[-1].toLowerCase()}" }, | ||
| mode: params.publish_dir_mode, | ||
|
|
@@ -310,7 +287,7 @@ | |
| // Visualization | ||
| // | ||
| withName: 'FOLDMASON_MSA2LDDTREPORT' { | ||
| ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.args_tree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}" } | ||
| ext.prefix = { "${meta.id}_${meta.guidetree}-args-${meta.args_guidetree_clean}_${meta.alignment ?: meta.treealign}-args-${meta.args_alignment_clean ?: meta.args_treealign_clean}" } | ||
| publishDir = [ | ||
| path: { "${params.outdir}/reports/visualization" }, | ||
| mode: params.publish_dir_mode, | ||
|
|
||
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.
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.
Mafft guidetree should be part of the sub workflow
Magus guidetree should not be part of it