thibautjombart / adegenet

adegenet: a R package for the multivariate analysis of genetic markers
165 stars 64 forks source link

Error in DAPC while selecting DAs #361

Closed massub closed 2 months ago

massub commented 2 months ago

I have been using adegent and DAPC for a while now and never had a problem but recently I am running into a problem. After find.cluster when I perform dapc after selecting the PCs to retain I get the following error before selecting the DAs to retain.

Error in lda.default(x, grouping, ...) : nrow(x) and length(grouping) are different

Why am I getting this error now, Please any help in this regard will be appreciated.

Thanks,

zkamvar commented 2 months ago

This was cross-posted to the poppr google group less than a day after this issue was opened and I have answered it there:

https://groups.google.com/g/poppr/c/GcUHO61SvMA/m/Dxxjq7x7AQAJ

Please refrain from cross-posting in the future, it fragments discussions and is time consuming for maintainers.