Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
luisas committed Dec 13, 2024
1 parent 7edf523 commit 978237a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions subworkflows/local/align.nf
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,12 @@ workflow ALIGN {
}
.map {
metratreeanddep, metaalign, template, dependency, tree ->
tree ? [ metratreeanddep+metaalign, tree, template, dependency ]:[ metratreeanddep+metaalign, [], template, dependency ]
tree ? [ metratreeanddep+metaalign, tree, template, dependency ]:[ metratreeanddep+metaalign, [], template, dependency ]
}
.branch {
foldmason: it[0]["aligner"] == "FOLDMASON"
}
.set { ch_optional_data_tools_tree }



// ------------------------------------------------
// Compute the alignments
Expand Down
9 changes: 5 additions & 4 deletions subworkflows/local/compute_trees.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ workflow COMPUTE_TREES {
//
// For the inputs that only have optional data but not a fasta
// we need to generate the fasta file
//
//

ch_optional_data
.join(ch_fastas, remainder:true)
.filter{
it[-1] == null
it[-1] == null
}
.map{
it -> [it[0], it[2]]
}.set { ch_optional_data_no_fasta }

CUSTOM_PDBSTOFASTA(ch_optional_data_no_fasta)
ch_versions = ch_versions.mix(CUSTOM_PDBSTOFASTA.out.versions)
ch_versions = ch_versions.mix(CUSTOM_PDBSTOFASTA.out.versions)

if(!params.skip_preprocessing){
FASTAVALIDATOR(CUSTOM_PDBSTOFASTA.out.fasta)
Expand All @@ -59,7 +60,7 @@ workflow COMPUTE_TREES {
mafft: it[0]["tree"] == "MAFFT"
}
.set { ch_fastas_fortrees }


FAMSA_GUIDETREE (ch_fastas_fortrees.famsa)
ch_trees = FAMSA_GUIDETREE.out.tree
Expand Down

0 comments on commit 978237a

Please sign in to comment.