Closed hrj21 closed 8 months ago
cs and gs share the same underlying c++ data structures, i.e. when you
gs <- GatingSet(cs)
gs is simply a different view of cs object, thus any mutation to gs will implicitly impact cs. to have a clean state of original cs without having to recreate it after you mutate the gs, you can
gs1 = gs_clone(gs)
then do whatever to gs1, won't affect cs and gs objects.
Hello,
Thank you for an excellent package. My question is about how to remove all traces of a gatingSet from the session. If I overwrite a gatingSet object with another, it seems to retain properties of the original such as spillover matrices and gates. I include a small reprex below illustrating the behaviour.
I understand that the way cytoSets and gatingSets are stored is different to most of the R classes we work with, but my question is: how do I completely remove all traces of a gatingSet / overwrite one, without having to restart the R session?
SessionInfo:
Many thanks Hefin