Skip to content

Commit

Permalink
Merge pull request #145 from luisas/add_consensus
Browse files Browse the repository at this point in the history
Add consensus
  • Loading branch information
luisas authored Sep 16, 2024
2 parents 37d2a1b + 0a17722 commit da8af09
Show file tree
Hide file tree
Showing 16 changed files with 390 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Initial release of nf-core/multiplesequencealign, created with the [nf-core](htt
- [[#84](https://github.com/nf-core/multiplesequencealign/issues/84)] - Update Metromap.
- [[#139](https://github.com/nf-core/multiplesequencealign/pull/139)] - Add Foldmason.
- [[#146](https://github.com/nf-core/multiplesequencealign/pull/146)] - Only show additional process tags when they exists and use the same ubuntu version in all modules.
- [[#145](https://github.com/nf-core/multiplesequencealign/pull/145)] - Add consensus MSA.

### `Fixed`

Expand Down
11 changes: 8 additions & 3 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@
withName: "CREATE_TCOFFEETEMPLATE" {
ext.prefix = { "${meta.id}" }
}

withName: "CLUSTALO_ALIGN|FAMSA_ALIGN|LEARNMSA_ALIGN|MAFFT|MAGUS_ALIGN|MUSCLE5_SUPER5|REGRESSIVE|TCOFFEE_ALIGN|TCOFFEE3D_ALIGN|FOLDMASON_EASYMSA" {
withName: "CLUSTALO_ALIGN|FAMSA_ALIGN|FOLDMASON_EASYMSA|KALIGN_ALIGN|LEARNMSA_ALIGN|MAFFT|MAGUS_ALIGN|MUSCLE5_SUPER5|REGRESSIVE|TCOFFEE_ALIGN|TCOFFEE3D_ALIGN" {
tag = {
[
"${meta.id}",
Expand Down Expand Up @@ -165,7 +164,13 @@

}

withName:"PIGZ_COMPRESS" {
withName: 'CONSENSUS'{
ext.prefix = { "${meta.id}_${meta.tree}-args-${meta.argstree_clean}_${meta.aligner}-args-${meta.args_aligner_clean}" }
ext.args = { "-output fasta_aln" }
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
}

withName:"PIGZ_COMPRESS"{
publishDir = [
path: { "${params.outdir}/alignment/${meta.id}" },
mode: params.publish_dir_mode,
Expand Down
Binary file modified docs/images/nf-core-msa_metro_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ The available ALIGN methods are listed below (those that accept guide trees are
- [MTMALIGN](https://bio.tools/mtm-align)
- [FOLDMASON](https://github.com/steineggerlab/foldmason)

Optionally, [M-COFFEE](https://tcoffee.org/Projects/mcoffee/index.html) will combine the output of all alignments into a consensus MSA (--build_consensus).

### 4. EVALUATE

Optionally, the produced MSAs can be evaluated. This step can be skipped using the `--skip_eval` parameter. The evaluations implemented are listed below.
Expand Down
5 changes: 5 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
"git_sha": "faf557ba56156ac0e5de76a25c1e3df11c944f59",
"installed_by": ["modules"]
},
"tcoffee/consensus": {
"branch": "master",
"git_sha": "8b8d8daa4b7d75ccfb290fcb721a00cc98e23567",
"installed_by": ["modules"]
},
"tcoffee/irmsd": {
"branch": "master",
"git_sha": "faf557ba56156ac0e5de76a25c1e3df11c944f59",
Expand Down
8 changes: 8 additions & 0 deletions modules/nf-core/tcoffee/consensus/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions modules/nf-core/tcoffee/consensus/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions modules/nf-core/tcoffee/consensus/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

132 changes: 132 additions & 0 deletions modules/nf-core/tcoffee/consensus/tests/main.nf.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions modules/nf-core/tcoffee/consensus/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions modules/nf-core/tcoffee/consensus/tests/sequence.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit da8af09

Please sign in to comment.