HelenaLC / CATALYST

Cytometry dATa anALYsis Tools
66 stars 30 forks source link

Importing back csv files exported from sce object will not preserve the unique cell id read in CATALYST #368

Open denvercal1234GitHub opened 11 months ago

denvercal1234GitHub commented 11 months ago

Hi, Helena,

Thank you for the package.

I ran sce$i <- seq(ncol(sce)) as suggested in #181 (thanks for the suggestion) before exporting the sce into FCS files so that each cell will have a unique numeric value (called nColID).

The output of colData(sce) include this nColID:

Screenshot 2023-09-02 at 14 17 40

In FlowJo, I then gated on some population of interest (and make sure that nColID are only linear transformed so the values don't change by FlowJo), then I exported this gated population as "scale values" csv files and read them into R. I expect each cell in this file should now have a unique nColID, but they are not; some nColID values are duplicated.

My goal is to have a way to pull certain cells from my sce object in R that belong to a gated population that I gated in FlowJo. I looked through the documentations, but did not find the solution. Is it possible with CATALYST?

Thank you again for your help.