Error in Minimum Spanning Network

206 views
Skip to first unread message

Miller Lehner

unread,
Jun 8, 2016, 4:27:38 PM6/8/16
to poppr
I am having trouble for generating the minimum spanning network.
There is the following error message:

“Error in gray(adjustcurve(E(mst)$weight, glim = glim, correction = gadj,  : 
  invalid gray level, must be in [0,1].”

I wonder if anyone know what it is and a way to solve it.
Thanks !

Zhian Kamvar

unread,
Jun 8, 2016, 4:31:41 PM6/8/16
to Miller Lehner, poppr
Hi,

This error often appears when there are samples with a large amount of missing data. This can cause missing values in the distance matrix needed to construct the minimum spanning network. You might be able to fix this by removing the genotypes with a large amount of missing data from the analysis:

missingno(myData, type = "genotype", cutoff = 0.51)

Hope that helps.

Zhian

--
You received this message because you are subscribed to the Google Groups "poppr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To post to this group, send email to po...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/26758cd9-b935-4326-be0d-ec5bacb2ed06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages