closefn.gds: Close a GDS file

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/gdsfmt-main.r

Description

Close a CoreArray Genomic Data Structure (GDS) file.

Usage

1
closefn.gds(gdsfile)

Arguments

gdsfile

an object of class gds.class, a GDS file

Details

For better performance, data in a GDS file are usually cached in memory. Keep in mind that the new file may not actually be written to disk, until closefn.gds or sync.gds is called. Anyway, when R shuts down, all GDS files created or opened would be automatically closed.

Value

None.

Author(s)

Xiuwen Zheng

References

http://github.com/zhengxwen/gdsfmt

See Also

createfn.gds, openfn.gds, sync.gds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# cteate a GDS file
f <- createfn.gds("test.gds")

add.gdsn(f, "int.matrix", matrix(1:50*100, nrow=100, ncol=50))

# close the GDS file
closefn.gds(f)

# delete the temporary file
unlink("test.gds", force=TRUE)

Bioconductor-mirror/gdsfmt documentation built on Aug. 10, 2017, 10:47 a.m.