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

MakeDiploidFSTMat Error X 2 #7

Open
dani-davenport opened this issue Aug 3, 2017 · 3 comments
Open

MakeDiploidFSTMat Error X 2 #7

dani-davenport opened this issue Aug 3, 2017 · 3 comments

Comments

@dani-davenport
Copy link

Dear Micheal and Katie

Hoping you could take a look at this issue below and help me out. Got it working, then R crashed, now even after reinstalling the packages and updating still cant get it to work.

FSTmat<- MakeDiploidFSTMat(SNPmat=SNPmat, locusNames=locusNames, popNames=as.character(pops))

Error in tapply(snpDataTemp, list(popNameTemp, snpDataTemp), length) :
arguments must have same length

So we try to transpose matrix... because of conflicting data input information between (a) OUTFLANK readme pdf and ?MakeDiploidFSTMat

SNPmat<- t(SNPmat)

FSTmat<- MakeDiploidFSTMat(SNPmat=SNPmat, locusNames=locusNames, popNames=as.character(pops))
[1] "Error: your population names do not match your SNP matrix"
Error in MakeDiploidFSTMat(SNPmat = SNPmat, locusNames = locusNames, popNames = as.character(pops)) :
no loop for break/next, jumping to top level

Please find attached my genotype data file and locusNames and pops
OutFLANK_data.txt
locusNames_OF.txt
popNames_OF.txt

@DrK-Lo
Copy link
Collaborator

DrK-Lo commented Aug 3, 2017 via email

@dani-davenport
Copy link
Author

dani-davenport commented Aug 5, 2017 via email

@saarman
Copy link

saarman commented Aug 9, 2018

Thanks I had the same problem. using plink --recodeA gives a genotype matrix with NA, thus this problem. Could you place this conversion of formats [is.na(genotype)] <- 9 in the vignette so that people without a bunch of experience in R can fix their input files to match this non-standard format (i.e. 9 instead of NA)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants