Learn R Programming

flowWorkspace (version 3.16.0)

save_gs: save/load a GatingSet/GatingSetList to/from disk.

Description

Save/load a GatingSet/GatingSetList which is the gated flow data including gates and populations to/from the disk. The GatingSet object The internal C data structure (gating tree),ncdfFlowSet object(if applicable)

Usage

save_gs(G, path, overwrite = FALSE, cdf = c("copy", "move", "skip", "symlink", "link"), type = c("binary", "text", "xml"), lib = c("PB", "BS"), ...)
load_gs(path)
save_gslist(gslist, path, ...)
load_gslist(path)

Arguments

G
A GatingSet
path
A character scalar giving the path to save/load the GatingSet to/from.
overwrite
A logical scalar specifying whether to overwrite the existing folder.
cdf
a character scalar. The valid options are :"copy","move","skip","symlink","link" specifying what to do with the cdf data file. Sometime it is more efficient to move or create a link of the existing cdf file to the archived folder. It is useful to "skip" archiving cdf file if raw data has not been changed.
type
a character scalar. The valid options are :"binary","text","xml" specifying format to store tree structure.(only meaningful when lib == 'BS') default is "binary", which is smaller and faster but machine-dependent. use "text" or "xml" for cross-platform data interchange (deprecated by 'PB' serialization).
lib
a character scalar specifying which serialization library to use. Can be either 'PB' (google protocol buffer) or 'BS'(boost serialization).
...
other arguments: not used.
gslist
A GatingSetList

Value

load_gs returns a GatingSet object load_gslist returns a GatingSetList object

See Also

GatingSet-class,GatingSetList-class

Examples

Run this code
## Not run: 
# 	#G is a GatingSet
# 	save_gs(G,path="tempFolder")
# 	G1<-load_gs(path="tempFolder")
# 
# 	#G is a GatingSet
# 
# 	save_gslist(gslist1,path="tempFolder")
# 	gslist2<-load_gslist(path="tempFolder")
# ## End(Not run)

Run the code above in your browser using DataLab