adegenet icon indicating copy to clipboard operation
adegenet copied to clipboard

add individual names to "assign" output from dapc()

Open timflutre opened this issue 8 years ago • 0 comments

Hello, First of all, thanks a lot for providing adegenet.

When I use find.clusters on a geneind object which has individual names, the grp component of its output list is a vector of factors with the individual names as names, which is very useful to compare to external grouping information.

However, when I want to refine those clusters using dapc fed with the same geneind object, the assign component of the output is a vector of factors with no names.

It would be great if the individual names, when present in the input to dapc, could be propagated to its assign output.

I hope it is clear.

Best, Tim

ps: I am using adegenet 2.1.0

timflutre avatar Nov 21 '17 15:11 timflutre