createfn.gds {gdsfmt} | R Documentation |
Create a new CoreArray Genomic Data Structure (GDS) file.
createfn.gds(filename, allow.duplicate=FALSE)
filename |
the file name of a new GDS file to be created |
allow.duplicate |
if |
Keep in mind that the new file may not actually be written to disk until
closefn.gds
or sync.gds
is called.
Return an object of class gds.class
:
filename |
the file name to be created |
id |
internal file id |
root |
an object of class |
readonly |
whether it is read-only or not |
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
# cteate a GDS file f <- createfn.gds("test.gds") # add a list to "test.gds" node <- add.gdsn(f, val=list(x=c(1,2), y=c("T", "B", "C"), z=TRUE)) f # close the GDS file closefn.gds(f) # delete the temporary file unlink("test.gds", force=TRUE)