Hello,
I've been working on doing ancestral character estimation (ace) using the ape package in RStudio to estimate the ancestral states of nodes on a phylogenetic tree. From what I've been able to find so far, it appears the error is with my data frame, but I'm insure how to fix it. See the code below:
#Perform the ace command (ancestral character estimation = determines ancestral
#character states and associated uncertainty, reconstructs states
#for discrete characters using maximum likelihood)
> fitER <- ace (Cyp96, tree96reroot, model = "ER", type = "discrete")
Error in matexpo(Q * EL[j]) : NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning message:
In ace(Cyp96, tree96reroot, model = "ER", type = "discrete") :
model fit suspicious: gradients apparently non-finite
The .treefile and .csv data files can be found here: RStudio Google Drive
Any help is much appreciated.