Skip to content

Commit

Permalink
Fix emapper merge
Browse files Browse the repository at this point in the history
  • Loading branch information
prototaxites committed May 6, 2024
1 parent 836af53 commit ba2f403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ process {
ext.prefix = { "${meta.sampleid}" }
}

withName: CAT_EMAPPER {
ext.prefix = { "${meta.assemblyid}" }
}

withName: CAT_FASTA {
ext.prefix = { "${meta.assemblyid}" }
}
Expand Down
4 changes: 4 additions & 0 deletions subworkflows/annotation.nf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ workflow ANNOTATION {

// Reassemble chunked eggnog output
ch_annotations_to_merge = EGGNOG_MAPPER.out.annotations
| map { meta, emapper ->
def meta_new = meta.submap("assemblyid")
[ meta_new, emapper ]
}
| groupTuple(by: 0)

CAT_EMAPPER(ch_annotations_to_merge, 5, "#")
Expand Down

0 comments on commit ba2f403

Please sign in to comment.