error when using gl.dist.phylo

14 views
Skip to first unread message

Av U

unread,
May 6, 2025, 4:03:23 AMMay 6
to dartR
Hi

getting this error after I run 
gl.dist.phylo(gl,subst.model="F81")

 Error in utils.check.datatype(xx, accept = c("snp", "silicodart"), verbose = verbose) :
Fatal Error: inappropriate object passed to function, found SNP expecting snp or silicodart

Ran code that was given in a previous post but still getting error (please see attached screenshot).

 Running R 4.4.3

Any suggestions of what to try?
gl.dist.phylo.jpg

Jose Luis Mijangos

unread,
May 6, 2025, 4:22:59 AMMay 6
to dartR
Hi,

This issue has been solved in the developing version of dartR.base, which you can install as shown below:

devtools::install_github("green-striped-gecko/dartR.base@dev")
library(dartRverse)
t1 <- platypus.gl
res <- gl.dist.phylo(t1,subst.model="F81")

Cheers,
Luis 

Av U

unread,
May 6, 2025, 5:57:55 AMMay 6
to dartR
just tried it. All working...thanks so much Luis.

cheers

Avril
Reply all
Reply to author
Forward
0 new messages