Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unnest error #46

Open
StickHu opened this issue Oct 30, 2023 · 1 comment
Open

unnest error #46

StickHu opened this issue Oct 30, 2023 · 1 comment
Assignees

Comments

@StickHu
Copy link

StickHu commented Oct 30, 2023

Hi, sorry to disturb. Recently when I was using ggtreeExtra to plot tree, something went wrong. As you can see,

trda %>% unnest(RareAbundanceBySample)
Error in UseMethod("unnest") :
no applicable method for 'unnest' applied to an object of class "c('MPSE', 'SummarizedExperiment', 'RectangularData', 'Vector', 'Annotated', 'vector_OR_Vector')

But the version of tidytree is 0.4.5, could you please help me solve that?

@xiangpin
Copy link
Member

xiangpin commented Nov 2, 2023

Maybe you need to extract the taxatree slot from MPSE class. For example, mpse %>% mp_extract_taxatree() -> taxa.tree. the taxa.tree is an treedata object, then you can processed and visualized using tidytree, treeio, ggtree and ggtreeExtra .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants