Hi there,
I'm trying to create a phylogenetic tree with my genlight object using the following code:
ph.tree <- gl.tree.nj(gl_complete, type="fan")
ph.tree
But I get the error: Error in ape::nj(d) : missing values are not allowed in the distance matrix Consider using njs()
I can't figure out how to remove the missing values it's talking about from my genlight object. I used gl.tree.nj with the
testset.gl, and it worked. I looked into njs(), but it seemed more complicated than just removing the missing values.
Thanks!
Dallas