-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read.genepop does return individual names #117
Comments
Hi Anders, I don't think genepop file store individual labels actually. Cheers Dr Thibaut Jombart On 10 December 2015 at 07:01, Anders Goncalves da Silva <
|
Small world. I'm importing a genepop file and we noticed the same behavior. I checked the genepop documentation on the file and it would appear individual names are optional. In fact, last individual name defines population name. Here's an example from the website.
|
Ha, this is why I hate this format.. The example above is a good example of terrible practice. We basically Dr Thibaut Jombart On 10 December 2015 at 12:05, Roman Luštrik notifications@github.com
|
The function already isolates individual names but they're not used. They're replaced by numbers. This can be solved in two ways. Either changing line 638 or add argument If we decide to change this function, I would vote for the first option. I happen to have the patch ready in a separate branch (not yet thoroughly tested or pushed). :) |
Yes, we could decide to condition Dr Thibaut Jombart On 10 December 2015 at 12:21, Roman Luštrik notifications@github.com
|
And it brings us to #116. :) |
Yup. Bootstrap is a particular case though. As a rule, I would really like Dr Thibaut Jombart On 10 December 2015 at 12:31, Roman Luštrik notifications@github.com
|
I've made a push to a branch. I tested this one nancycats and my own file and it appears to work. |
Great, thanks Dr Thibaut Jombart On 10 December 2015 at 13:12, Roman Luštrik notifications@github.com
|
Thank you Roman and Thibaut. Yeah, I know it is an edge case, but it is an important one for me: github.com/andersgs/irelr. I have tried running it with my proposed solution, and because it calls df2genind, it will automatically issue the warning and substitute the names for row numbers if there are duplicates. Best. Anders. |
Can we merge the changes to master, then? |
Err..I can't see any pull request? Dr Thibaut Jombart On 11 December 2015 at 08:18, Roman Luštrik notifications@github.com
|
This tests that the feature in #117 works.
Thank you. |
Hello Thibaut. Great package, really useful.
The new read.genepop() does not return individual names. It seems that the df2genind call at the end is missing the ind.names parameter:
Simple fix would be to:
Thank you.
Anders.
The text was updated successfully, but these errors were encountered: