Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide API to save new GatingSet object #11

Closed
mikejiang opened this issue May 25, 2012 · 1 comment
Closed

provide API to save new GatingSet object #11

mikejiang opened this issue May 25, 2012 · 1 comment

Comments

@mikejiang
Copy link
Member

Currently most of data structures reside in c++, R object only stores:

  1. the pointer to c++ data structure
    2.data Environment that stores ncdfFlowSet and axis.labels

so the serialization routine needs to be implemented in c++ to save the first part.
since c++ does not natively support serialization for complex objects, we will consider using boost Serialization library to do the deep copying of entire gating set class.

@mikejiang
Copy link
Member Author

two R APIs are added to save/load gatingSet to/from disk.

archive(G,dir="output/NHLBI/gs")
saves the GatingSet as two files in the specified folder gs:
1 *. rds file (R object)
2 *.dat file (c++ object that stored in R as external pointer)
They share the same file name with different extensions. In the future, we can think of bundling into one zip file.

G1<-unarchive("output/NHLBI/gs")
reloads the gatingSet from disk.

And reloaded gatingSet has passed the testing on major APIs of flowWorkspace.

mikejiang pushed a commit that referenced this issue Jul 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant