Skip to content
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

Single locus genalex files cannot be imported #58

Closed
zkamvar opened this issue Aug 9, 2015 · 0 comments
Closed

Single locus genalex files cannot be imported #58

zkamvar opened this issue Aug 9, 2015 · 0 comments
Assignees

Comments

@zkamvar
Copy link
Member

@zkamvar zkamvar commented Aug 9, 2015

This post in the poppr forum showed that a single locus data set could not be imported. Here's a reproducible example.

# Note, this is a subset of the monpop data set, which is haploid. I'm treating it as a diploid here
zz <- "1    6   1   6
7_09_BB         
Ind Pop CHMFc4  CHMFc5
A004    7_09_BB 224 85
A002    7_09_BB 224 97
A011    7_09_BB 224 97
A009    7_09_BB 224 97
A006    7_09_BB 224 97
A013    7_09_BB 224 97"

read.genalex(textConnection(z), sep = "\t")
 Error in gena2[, ((x - 1)/ploidy) + 1] <<- pop_combiner(gena, hier = x:(x +  : 
  incorrect number of subscripts on matrix 

The reason for this error was because of our old friend drop = TRUE being default for subsetting matrices. I am scouring the code and setting drop = FALSE everywhere.

@zkamvar zkamvar self-assigned this Aug 9, 2015
@zkamvar zkamvar closed this in eabfa8a Aug 9, 2015
zkamvar referenced this issue Aug 9, 2015
🎉 🎊 drop = FALSE FOR EVERYONE! 🎊 🎉
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.