Learn R Programming

SeqArray (version 1.10.1)

seqSNP2GDS: Convert SNPRelate Format to SeqArray Format

Description

Converts a SNP GDS file to a sequence GDS file.

Usage

seqSNP2GDS(gds.fn, out.gdsfn, compress.geno="ZIP_RA", compress.annotation="ZIP_RA", optimize=TRUE, verbose=TRUE)

Arguments

gds.fn
the file name of SNP format
out.gdsfn
the file name, output a file of SeqArray format
compress.geno
the compression method for "genotype"; optional values are defined in the function add.gdsn
compress.annotation
the compression method for the GDS variables, except "genotype"; optional values are defined in the function add.gdsn
optimize
if TRUE, optimize the access efficiency by calling cleanup.gds
verbose
if TRUE, show information

Value

Return the file name of SeqArray file with an absolute path.

See Also

seqGDS2SNP, seqVCF2GDS, seqGDS2VCF

Examples

Run this code
library(SNPRelate)

# the GDS file
gds.fn <- snpgdsExampleFileName()

seqSNP2GDS(gds.fn, "tmp.gds")

seqSummary("tmp.gds")


# remove the temporary file
unlink("tmp.gds", force=TRUE)

Run the code above in your browser using DataLab