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

tree topology doesn't match with output from dendroscope ?? #2

Open
limin321 opened this issue Sep 26, 2020 · 0 comments
Open

tree topology doesn't match with output from dendroscope ?? #2

limin321 opened this issue Sep 26, 2020 · 0 comments

Comments

@limin321
Copy link

Hello,

I created three phylogenetic tree using three different methods, now I want to compare the topology of my three trees using phylogram r package, here is my codes and output:

# read dendrogram
dend1 <- read.dendrogram("tree1.newick")
dend2 <- read.dendrogram("tree2.newick")
dend3 <- read.dendrogram("tree3.newick")
# ladderizing
dend1 <- ladder(dend1, decreasing = TRUE)
dend2 <- ladder(dend2, decreasing = TRUE)
dend3 <- ladder(dend3, decreasing = TRUE)
# tanglegram two trees
dndlist <- dendextend::dendlist(dend1, dend2)
dendextend::tanglegram(dndlist, fast = FALSE, margin_inner = 5)

dndlist <- dendextend::dendlist(dend2, dend3)
dendextend::tanglegram(dndlist, fast = FALSE, margin_inner = 5)

The output of two tanglegram look like this:
Screen Shot 2020-09-26 at 4 30 59 PM

Screen Shot 2020-09-26 at 4 31 15 PM

However, I did same tanglegram analysis of above tree pairs in dendroscope, the outputs show the topology of my trees agree with each other, here is how they look like:
Screen Shot 2020-09-26 at 4 33 34 PM

Screen Shot 2020-09-26 at 4 34 06 PM

Can anyone have any recommendation on how to modify my codes so I can have the same output as from dendroscope??

Thank you so much.

Best,
LC

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

1 participant