This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How should we replace NAs from a genelight object?

Hello dears all;

I am working on a vcf file generated from GBS data of some fish populations. So, in R the vcf file was converted to a genelight object through the function vcfR2genelight. Now I wan to perform a PCA using glpca but when I run my command it shows me the following error:

Error in glPca(gl.fish, nf = 3, parallel = TRUE) : NAs detected in the vector of means

So, I will be grateful if you can help me to overcome this problem. Any command and help is appreciated in advance.

Regards, Omid

r glpca adegenet gbs snp

0 answers

No answers yet.

Log in to answer this question.