snpgdsOpen {SNPRelate} | R Documentation |
Open a SNP GDS file
snpgdsOpen(filename, readonly=TRUE, allow.duplicate=FALSE, allow.fork=FALSE)
filename |
the file name |
readonly |
whether read-only or not |
allow.duplicate |
if |
allow.fork |
|
It is strongly suggested to call snpgdsOpen
instead of
openfn.gds
, since snpgdsOpen
will perform
internal checking for data integrality.
Return an object of class SNPGDSFileClass
.
Xiuwen Zheng
# open an example dataset (HapMap) genofile <- snpgdsOpen(snpgdsExampleFileName()) genofile # close the file snpgdsClose(genofile)