ericgoolsby / Rphylopars

Phylogenetic Comparative Tools for Missing Data and Within-Species Variation
28 stars 11 forks source link

Error while running on large dataset #39

Open Jigyasa3 opened 4 years ago

Jigyasa3 commented 4 years ago

Hey @ericgoolsby

I have been getting the same error as #32 , but this time for continuous traits. If I decrease the no. of traits to >20 then the function runs. Otherwise, it gives an error-

error- p_BM <- phylopars(trait_data = functions3,tree = tree,model = "BM") Error in tp(L = X, R = R, Rmat = as.matrix(Rmat), mL = ncol(X), mR = 1, : Not compatible with requested type: [type=character; target=double].

files- https://github.com/Jigyasa3/errors/blob/master/above500_tpm_mainfunctions_NAvalues.csv https://github.com/Jigyasa3/errors/blob/master/500bps_termitetree.nwk

code that I am running- `func<-read.csv("above500_tpm_mainfunctions_NAvalues.csv",row.names=1) tree<-read.tree("500bps_termitetree.nwk")

library(Rphylopars) p_BM <- phylopars(trait_data = func,tree = tree,model = "BM") `