[adegenet-forum] Problems with genind object

Logan Clark clarklc at appstate.edu
Thu Nov 2 20:10:03 CET 2017


Hi, I am working on a project involving microsatellite data in a relatively
standard diploid species. I have 141 samples across 17 loci and my alleles
formatted as 168/184 for a heterozygote and 168/168 for a homozygote. I
have been able to transfer my data from a .csv file to a dataframe then to
a genind object using df2genind. I have been able to run other statistics
on the genind object I have created such as HWE, but I am trying to use the
chao_bootstrap function in mmod with this object and I keep getting the
error message

 "Error in tapply(y, pop(x), mean, na.rm = TRUE) :
  arguments must have same length"

I'm not really sure what this means or how to fix it. I am trying to run
the individuals as one population, but I am not sure if that is have any
effect. Should I create another vector of 1's to code for the population
and concatenate the two? Does anyone have any advice on how to solve this
problem? Thank you in advance for any help with this issue.

-- 
Logan Clark
Graduate Student
Biology Department
Appalachian State University
P: 252-370-0034
E: clarklc at appstate.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20171102/010e5c30/attachment.html>


More information about the adegenet-forum mailing list