RGLab / flowWorkspace

flowWorkspace
GNU Affero General Public License v3.0
44 stars 21 forks source link

Update gs_cyto_data<- to support replacement with flowSet objects. #383

Closed djhammill closed 1 year ago

djhammill commented 1 year ago

This PR addresses the issue raised #372 where gs_cyto_data() replacement method no longer works for flowSet objects.

We don't want to remove support for flowSet objects just yet as many users/developers still create GatingSet objects by passing in flowSet objects - so we need to provide replacement method that supports flowSet objects too.

To fix this, we perform a class check on value and if it isn't a cytoset we convert it using flowSet_to_cytoset() before updating it in the GatingSet.

Successfully tested locally with flowSet, ncdfFlowSet and cytoset replacement values.