DillonHammill / CytoExploreR

Interactive Cytometry Data Analysis
60 stars 13 forks source link

cyto_save values #169

Closed jaredmychal closed 1 year ago

jaredmychal commented 1 year ago

Hi Dillon, This is more of a question as opposed to issue. When saving a gating set to .fcs, do the transformed values get written or do the original values get written?

Example, would this export the arcsinh transformed values:

Setup Activation samples

gs <- cyto_setup("~/Diana CyTOF Nov 2022/Blood/data/compensated", gatingTemplate = "Manual-Gating.csv")

gs <- cyto_transform(gs, type = "arcsinh")

cyto_gate_draw(gs, alias = "Cells", channels = c("Ce140Di","Ir191Di"), type = "rectangle", axes_trans = trans )

cyto_save(gs, parent = "Cells", save_as = "~/data/cells")

DillonHammill commented 1 year ago

Yes that is correct. You can write the linear data by setting inverse =TRUE in cyto_save().

jaredmychal commented 1 year ago

Excellent, thank you!