[adegenet-forum] Problems with genind object

Roman Luštrik roman.lustrik at biolitika.si
Fri Nov 3 09:12:50 CET 2017


Can you provide a small example we can work on? 

Cheers, 
Roman 

---- 
In god we trust, all others bring data. 
> Zahtevaj IJZ na https://kurc.biolitika.si 


From: "Logan Clark" <clarklc at appstate.edu> 
To: adegenet-forum at lists.r-forge.r-project.org 
Sent: Thursday, November 2, 2017 8:10:03 PM 
Subject: [adegenet-forum] Problems with genind object 

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 


_______________________________________________ 
adegenet-forum mailing list 
adegenet-forum at lists.r-forge.r-project.org 
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20171103/cec6a4ff/attachment.html>


More information about the adegenet-forum mailing list