Open TuomasBorman opened 4 months ago
should we implement an addTree option to append the rowTree and colTree slots ?
Maybe there could be name parameter. By default, it could be "phylo". Then you could check if a tree named "phylo" is already existing and give warning if it is.
The created internal function could follow this structure https://github.com/microbiome/mia/blob/b627edce620807af20d3ed85c6667f4b8ef8f2ea/R/utils.R#L310. Also take into account the MARGIN in this internal function .
Currently,
addHierarchyTree
(addTaxonomyTree
) replaces existing tree. Consider adding option for adding tree instead of replacing.