GDS -- Genomic Data Structures used for storing genetic array-oriented
data, and the file format used in the gdsfmt package. VCF -- The Variant Call Format (VCF), which is a generic format for storing
DNA polymorphism data such as SNPs, insertions, deletions and
structural variants, together with rich annotations.
If there are more than one file name in vcf.fn
, snpgdsVCF2GDS
will merge all dataset together once they all contain the same samples. It is
useful to combine genetic data if VCF data are divided by chromosomes.
method = "biallelic.only"
: to exact bi-allelic and polymorhpic
SNP data (excluding monomorphic variants);
method = "biallelic.only"
: to exact bi-allelic and polymorhpic SNP
data; method = "copy.num.of.ref"
: to extract and store dosage (0, 1, 2)
of the reference allele for all variant sites, including bi-allelic SNPs,
multi-allelic SNPs, indels and structural variants.
Haploid and triploid calls are allowed in the transfer, the variable
snp.id
stores the original the row index of variants, and the variable
snp.rs.id
stores the rs id.
The user could use option
to specify the range of code for autosomes.
For humans there are 22 autosomes (from 1 to 22), but dogs have 38 autosomes.
Note that the default settings are used for humans. The user could call
option = snpgdsOption(autosome.end=38)
for importing the VCF file of dog.
It also allows defining new chromosome coding, e.g.,
option = snpgdsOption(Z=27)
, then "Z" will be replaced by the number 27.