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

Problem with agglomerating rowTree #700

Open
RiboRings opened this issue Mar 5, 2025 · 3 comments
Open

Problem with agglomerating rowTree #700

RiboRings opened this issue Mar 5, 2025 · 3 comments

Comments

@RiboRings
Copy link
Member

Hi! There might be a problem with the tree agglomeration (or plotRowTree?)

The tree looks ok with the original tse.

library(mia)
library(miaViz)

data("Tengeler2020")
tse <- Tengeler2020

plotRowTree(tse,
            layout="circular",
            edge_colour_by="Phylum",
            tip_colour_by="Order")
Image

However, after agglomerating the tree looks "disorganised", in the sense that I would still expect taxonomically related taxa to sit closer in the phylogenetic tree as well.

tse_genus <- agglomerateByRank(tse, rank = "Genus")

plotRowTree(tse_genus,
            layout="circular",
            edge_colour_by="Phylum",
            tip_colour_by="Order")
Image
@TuomasBorman
Copy link
Contributor

Very good catch! I will check this in upcoming days.

@RiboRings
Copy link
Member Author

Sorry @ake123 I assigned you by accident!

@TuomasBorman
Copy link
Contributor

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

3 participants