Closed thpralas closed 2 days ago
Also add input check for agglomerate.tree. Fail fast.
Realized one thing: the function might not work if the input is SummarizedExperiment since it has no trees.
--> Create generic method for TreeSummarizedExperiment
Agglomeration of reference sequences was not working, but now everything should be fine.
Can you add tests for reference sequences? Check other agglomeration functions and their unit tests.
You can find suitable data from data("SilvermanAGutData", package = "miaTime")
As mentioned in https://github.com/microbiome/mia/issues/573, agglomerateByPrevalence returns a TSE object with
rowTree = NULL
.This PR removes the class checking and class conversion from TSE to SCE that removes the tree.
With this modification, the tree is returned and agglomerated if
agglomerate.tree = TRUE
.