--
You received this message because you are subscribed to a topic in the Google Groups "dartR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dartr/WGoavfd4fbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/6a3dd9b6-da43-4b3f-884b-082636f21ff3n%40googlegroups.com.
1) In this case gl.recalc.metric is used to calculate metrics for each locus that are not calculated by default in other programs and are required for various functions in dartR. Actually, the main difference that I suggested is:
Fourpop.gl_2$other$loc.metrics <- as.data.frame(Fourpop.gl_2$other$loc.metrics)
I suggested this because the function gi2gl formats the slot "loc.metrics" as a list when it should be a data frame. We will fix this soon and should be available in the next release of dartR, however in case you want to have the latest version of the package you can download the developer version via:
install_github("green-striped-gecko/dartR@dev")
2) You can try:
x <- yourdata.gl
na.counter <- 0
loc.list <- array(NA, nLoc(x))
mat <- as.matrix(x)
lN <- locNames(x)
for (i in 1:nLoc(x)) {
row <- mat[, i]
if (all(row == 0, na.rm = TRUE) | all(row == 2, na.rm =
TRUE) |
all(is.na(row))) {
loc.list[i] <- lN[i]
if (all(is.na(row))) {
na.counter = na.counter + 1
}
}
}
loc.list <- loc.list[!is.na(loc.list)]
# display list of monomorphic loci
print(loc.list)
# NB We will add an option to this function to make more accessible the off monomorphic loci
3) The correction for multiple tests used in the HWE function
is the "standard" Bonferroni correction method not the sequential
Bonferroni correction a.k.a. Holm-Bonferroni. The "standard" Bonferroni
method is more stringent than the Holm-Bonferroni.
Cheers,
Luis
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/16b849ed-f692-4040-9240-f9688e80f774n%40googlegroups.com.