-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
249 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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,2 +1,2 @@ | ||
tree,args_tree,aligner,args_aligner | ||
FAMSA,,FOLDMASON, | ||
FAMSA,,FAMSA, |
This file contains 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 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 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 FOLDMASON_CREATEDB { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "community.wave.seqera.io/library/foldmason:512dd7b3e2453a75" | ||
|
||
input: | ||
tuple val(meta) , path(pdbs) | ||
|
||
output: | ||
tuple val(meta), path("${prefix}*"), emit: db | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
foldmason createdb \\ | ||
${pdbs} \\ | ||
${prefix} \\ | ||
$args \\ | ||
--threads $task.cpus | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
foldmason: \$(foldmason | grep "foldmason Version:" | cut -d":" -f 2 | awk '{\$1=\$1;print}') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
touch ${prefix} | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
foldmason: \$(foldmason | grep "foldmason Version:" | cut -d":" -f 2 | awk '{\$1=\$1;print}') | ||
END_VERSIONS | ||
""" | ||
} |
This file contains 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,51 @@ | ||
process FOLDMASON_MSA2LDDTREPORT { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "community.wave.seqera.io/library/foldmason:512dd7b3e2453a75" | ||
|
||
input: | ||
tuple val(meta) , path(msa) | ||
tuple val(meta2) , path(db) | ||
tuple val(meta3) , path(pdbs) | ||
tuple val(meta4) , path(tree) | ||
|
||
output: | ||
tuple val(meta), path("${prefix}.html"), emit: html | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
def options_tree = tree ? "--guide-tree $tree" : "" | ||
""" | ||
foldmason msa2lddtreport \\ | ||
${meta.id} \\ | ||
${msa} \\ | ||
${prefix}.html \\ | ||
$args \\ | ||
${options_tree} \\ | ||
--threads $task.cpus | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
foldmason: \$(foldmason | grep "foldmason Version:" | cut -d":" -f 2 | awk '{\$1=\$1;print}') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
touch ${prefix}.html | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
foldmason: \$(foldmason | grep "foldmason Version:" | cut -d":" -f 2 | awk '{\$1=\$1;print}') | ||
END_VERSIONS | ||
""" | ||
} |
43 changes: 43 additions & 0 deletions
43
modules/nf-core/tcoffee/extractfrompdb/tcoffee-extractfrompdb.diff
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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
3 changes: 2 additions & 1 deletion
3
...orkflows/local/preprocess_optionaldata.nf → subworkflows/local/preprocess.nf
This file contains 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 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,69 @@ | ||
include {FOLDMASON_CREATEDB } from '../../modules/local/foldmason_createdb.nf' | ||
include {FOLDMASON_MSA2LDDTREPORT } from '../../modules/local/foldmason_msa2lddtreport.nf' | ||
|
||
workflow VISUALIZATION { | ||
|
||
take: | ||
ch_msa // channel: [ meta, /path/to/file.* ] | ||
ch_trees // channel: [ meta, /path/to/file.* ] | ||
ch_optional_data // channel: [ meta, /path/to/file.* ] | ||
|
||
main: | ||
|
||
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 | ||
.map{ | ||
meta, file -> [meta.subMap(["id", "tree", "args_tree", "args_tree_clean"]), meta, file] | ||
} | ||
.join( ch_trees, by:0, remainder: true) | ||
.filter { it.size() == 4 } | ||
.map{ | ||
tree_meta, meta, msa, tree -> [meta.subMap(["id"]), meta, msa, tree] | ||
} | ||
.join( ch_optional_data, by:0) | ||
.set { ch_msa_tree_data } | ||
|
||
|
||
ch_optional_data.view() | ||
// | ||
// FOLDMASON VISUALISATION | ||
// | ||
|
||
FOLDMASON_CREATEDB( | ||
ch_optional_data | ||
) | ||
|
||
|
||
ch_msa_tree_data | ||
.combine(FOLDMASON_CREATEDB.out.db, by:0) | ||
.multiMap{ | ||
id, meta, msafile, treefile, pdb, dbfiles -> | ||
msa: [meta, msafile] | ||
db: [id , dbfiles] | ||
pdbs: [id , pdb] | ||
tree: [meta, treefile == null ? [] : treefile] | ||
}.set{ | ||
ch_msa_db_tree | ||
} | ||
|
||
ch_msa_db_tree.tree.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 | ||
|
||
emit: | ||
html = ch_html | ||
versions = ch_versions | ||
|
||
} |
This file contains 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