Closed timflutre closed 7 years ago
Please use snpgdsVCF2GDS()
to convert the VCF file to a SNP GDS file (SNP GDS file is different from SeqArray GDS file).
library(SNPRelate)
gds.file <- "example.gds"
vcf.file <- "example.vcf.gz"
SNPRelate::snpgdsVCF2GDS(vcf.file, gds.file)
bed.file <- "example"
SNPRelate::snpgdsGDS2BED(gdsobj=gds.file, bed.fn=bed.file)
Great, thanks!
ps: it would be great if snpgdsVCF2GDS
could have an argument specifying a subset of the chromosomes to convert
Here is a minimal reproducible example:
The last command returns:
Here is my
sessionInfo()
: