Hello,
I commonly run this code with no error but with this sample set I am finding errors having to do with ploidy even though it is a simple diploid SNP dataset.
regionalVcf = read.vcfR("regionalMcavNoClones.bcf")
#Scanning file to determine attributes.
#File attributes are all correct and all variants are processed
popData = read.csv("regionalInds2PopsNoClones.csv")
# Reads in population data for each sample
strata(regionalGenlightPopDepth) = data.frame(popData)
setPop(regionalGenlightPopDepth) = ~regionDepth
amova <- poppr.amova(regionalGenlightPopDepth, ~regionDepth) #Runs AMOVA
Error in DISTFUN(mpop, ...) :
min(ploidy(x)) == max(ploidy(x)) is not TRUE
Could it be an issue with the file size (2.7 Mb)? I otherwise can't tell any difference between this and other genlight files I have made.
Thank you,
Alexis Sturm
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/poppr/ce965a3c-dc38-4cb5-b62f-173ff3bba125n%40googlegroups.com.