Off topic:phylogenetic analyses in R program
0
0
Entering edit mode
7.8 years ago

I compared two phylogenetic trees based on two different genes via Shimodaira–Hasegawa tests in R program. Here is the code:

library(ape)
library(phangorn)
tr1 <- read.tree("ND1_besttree.out")
PCGstr <- read.tree("PCGs_besttree.out")
phyDat1 <- read.phyDat("ND1.phy")
PCGsphyDat <- read.phyDat("PCGs.phy")
fit1 <- pml(tr1, phyDat1)
fit2 <- pml(PCGstr, PCGsphyDat)
X <- SH.test(fit1, fit2, B=10000)
X

And here are the results:

     Trees      ln L      Diff ln L    p-value
[1,]   1     -24837.17    195.1926     0.0000
[2,]   2     -24641.98     0.0000      0.5079

I am a beginner in R and phylogeny. I wonder how to analyse the result and how to calculate ΔLn L? And I want to know if any significant differences between the two trees. Thanks very much for your help!

R • 1.8k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2568 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6