You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading required package: gdsfmt
SNPRelate -- supported by Streaming SIMD Extensions 2 (SSE2)
Start file conversion from VCF to SNP GDS ...
Method: extracting biallelic SNPs
Number of samples: xxx
Parsing "xxxx.vcf" ...
Error in snpgdsVCF2GDS("xxxx.vcf", :
Genotype code is out of range "2".
FILE: xxxx.vcf
LINE: 46, COLUMN: 20, 2
Execution halted
I feel very confused. The (imputed) genotypes are all in the range [0, 2], why does it say that genotype code is out of range?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hi,
When I run the code below,
library("SNPRelate")
snpgdsVCF2GDS("xxxx.vcf", "ccm.gds", method="biallelic.only")
genofile <- openfn.gds("ccm.gds")
ccm_pca<-snpgdsPCA(genofile)
I get the following error.
Loading required package: gdsfmt
SNPRelate -- supported by Streaming SIMD Extensions 2 (SSE2)
Start file conversion from VCF to SNP GDS ...
Method: extracting biallelic SNPs
Number of samples: xxx
Parsing "xxxx.vcf" ...
Error in snpgdsVCF2GDS("xxxx.vcf", :
Genotype code is out of range "2".
FILE: xxxx.vcf
LINE: 46, COLUMN: 20, 2
Execution halted
I feel very confused. The (imputed) genotypes are all in the range [0, 2], why does it say that genotype code is out of range?
Thank you in advance!
The text was updated successfully, but these errors were encountered: