Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
luisas committed Dec 9, 2024
1 parent fffd09e commit ff1d969
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 17 deletions.
2 changes: 1 addition & 1 deletion assets/toolsheet.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tree,args_tree,aligner,args_aligner
FAMSA,,FAMSA,
FAMSA,,FOLDMASON,
3 changes: 2 additions & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"git_sha": "8541ec46706d6610b032748fa51acf4b3094ced8",
"installed_by": [
"modules"
]
],
"patch": "modules/nf-core/foldmason/easymsa/foldmason-easymsa.diff"
},
"kalign/align": {
"branch": "master",
Expand Down
5 changes: 3 additions & 2 deletions modules/local/foldmason_createdb.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ process FOLDMASON_CREATEDB {
label 'process_medium'

conda "${moduleDir}/environment.yml"
container "community.wave.seqera.io/library/foldmason:512dd7b3e2453a75"

container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'oras://community.wave.seqera.io/library/foldmason:2.7bd21ed--a45f76ed12b391e6':
'community.wave.seqera.io/library/foldmason:2.7bd21ed--e7f739473ad6578d' }"
input:
tuple val(meta) , path(pdbs)

Expand Down
5 changes: 3 additions & 2 deletions modules/local/foldmason_msa2lddtreport.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ process FOLDMASON_MSA2LDDTREPORT {
label 'process_medium'

conda "${moduleDir}/environment.yml"
container "community.wave.seqera.io/library/foldmason:512dd7b3e2453a75"

container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'oras://community.wave.seqera.io/library/foldmason:2.7bd21ed--a45f76ed12b391e6':
'community.wave.seqera.io/library/foldmason:2.7bd21ed--e7f739473ad6578d' }"
input:
tuple val(meta) , path(msa)
tuple val(meta2) , path(db)
Expand Down
50 changes: 50 additions & 0 deletions modules/nf-core/foldmason/easymsa/foldmason-easymsa.diff

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

6 changes: 3 additions & 3 deletions modules/nf-core/foldmason/easymsa/main.nf

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

2 changes: 1 addition & 1 deletion modules/nf-core/foldmason/easymsa/meta.yml

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

9 changes: 8 additions & 1 deletion subworkflows/local/align.nf
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ workflow ALIGN {
metadependency, template, dependency, metatree, metaalign ->
[ metadependency+metatree , metaalign, template, dependency ]
}
.combine(trees, by: 0)
.join(trees, by: 0)
.map {
metratreeanddep, metaalign, template, dependency, tree ->
[ metratreeanddep+metaalign, tree, template, dependency ]
Expand All @@ -130,6 +130,8 @@ workflow ALIGN {
foldmason: it[0]["aligner"] == "FOLDMASON"
}
.set { ch_optional_data_tools_tree }



// ------------------------------------------------
// Compute the alignments
Expand Down Expand Up @@ -369,12 +371,17 @@ workflow ALIGN {
ch_versions = ch_versions.mix(FOLDMASON_EASYMSA.out.versions.first())
}


ch_msa.view()

// ----------------- CONSENSUS ------------------
if(params.build_consensus){
ch_msa.map{ meta, msa -> [ meta["id"], msa]}
.groupTuple()
.map{ id_meta, msas -> [ ["id": id_meta, "tree":"", "args_tree":"", "args_tree_clean":null, "aligner":"CONSENSUS", "args_aligner":"", "args_aligner_clean":null ], msas ]}
.set{ ch_msa_consensus }

ch_msa_consensus.view()

CONSENSUS(ch_msa_consensus, [[:],[]], compress)
ch_msa = ch_msa.mix(CONSENSUS.out.alignment)
Expand Down
8 changes: 2 additions & 6 deletions subworkflows/local/visualization.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ workflow VISUALIZATION {
ch_versions = Channel.empty()
ch_html = Channel.empty()


// Merge the msa and tree
// split the msa meta to be able to merge with the tree meta
ch_msa
Expand All @@ -29,7 +28,6 @@ workflow VISUALIZATION {
.set { ch_msa_tree_data }


ch_optional_data.view()
//
// FOLDMASON VISUALISATION
//
Expand All @@ -38,7 +36,6 @@ workflow VISUALIZATION {
ch_optional_data
)


ch_msa_tree_data
.combine(FOLDMASON_CREATEDB.out.db, by:0)
.multiMap{
Expand All @@ -51,13 +48,12 @@ workflow VISUALIZATION {
ch_msa_db_tree
}

ch_msa_db_tree.tree.view()

ch_msa_db_tree.msa.view()
FOLDMASON_MSA2LDDTREPORT(
ch_msa_db_tree.msa,
ch_msa_db_tree.db,
ch_msa_db_tree.pdbs,
ch_msa_db_tree.tree
[[:],[]]
)

ch_html = FOLDMASON_MSA2LDDTREPORT.out.html
Expand Down

0 comments on commit ff1d969

Please sign in to comment.