Closed thpralas closed 2 days ago
Cool! This is caused because of this https://github.com/microbiome/mia/blob/c629462bf92e2c8cd48e878667dbd08a34b23fa1/R/getPrevalence.R#L592
This converts TreeSE to SCE which removes the tree. It seems that the code is very old and there is now support for rbind for TreeSE.
So the class-checking and conversion could be removed and just call rbind. Can you check this @thpralas ?
agglomerateByPrevalence
returns a TSE object without rowTree, no matter the value of theagglomerate.tree
argument.It should return a TSE object with its rowTree, agglomerated or not depending on the
agglomerate.tree
argument.It is worth nothing that the
agglomerateByRank
function works correctly and returns a TSE object with its rowTree: