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

Error: your population names do not match your SNP matrix #14

Open
cgraham13 opened this issue Aug 7, 2018 · 0 comments
Open

Error: your population names do not match your SNP matrix #14

cgraham13 opened this issue Aug 7, 2018 · 0 comments

Comments

@cgraham13
Copy link

I am having issues with the MakeDiploidFSTMat() function. I am keep getting the above error even though the numbers seem to line up in my files. I generated the .geno file in PGDSpider. I have the same number of individuals in the .ind file as columns in the SNPmat and loci in the .snp file as rows.

Im sure it's something dumb I am missing but would love some help!

This is the code I have been using:

SNPmat <- read.table("LocalAdaptation-m3M1n1r50-SK-Ecozones-v2.txt", header=FALSE)

ind <- read.table("LocalAdaptation-m3M1n1r50-SK-Ecozones-ind.txt", header = FALSE)

locus <- read.table("LocalAdaptation-m3M1n1r50-SK-Ecozones-snp.txt", header = FALSE)

MakeDiploidFSTMat(SNPmat = SNPmat,
locusNames = locus$V1,
popNames = ind$V3

I have attached the files as well.

Thanks in advance!

LocalAdaptation-m3M1n1r50-SK-Ecozones-snp.txt
LocalAdaptation-m3M1n1r50-SK-Ecozones-ind.txt
LocalAdaptation-m3M1n1r50-SK-Ecozones-v2.txt

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

1 participant