FlowCytometryTools icon indicating copy to clipboard operation
FlowCytometryTools copied to clipboard

LMD to FCS

Open yoavram opened this issue 10 years ago • 6 comments

It would be cool to open LMD files (generated for example by Gallios machines). Its possible to do it in R, so one could in principle reimplement in python or just use the R implementation and call it from python via Rpy2.

Here's an R script that does it: https://gist.github.com/yoavram/198493cebbf0b323a9d8

yoavram avatar Sep 05 '15 09:09 yoavram

My knowledge of R is basically 0, but from the code it looks like it's only necessary to rename the file extension? (i.e., is the lmd format different from the fcs format?)

eyurtsev avatar Sep 05 '15 21:09 eyurtsev

Wait, from which code? The gist I sent?

yoavram avatar Sep 05 '15 21:09 yoavram

Yes, (I did say that my knowledge is basically 0!) ;)

eyurtsev avatar Sep 05 '15 21:09 eyurtsev

Oh I see. This R function read.FCS knows how to read LMD. Then write.FCS writes a standard FCS. From what I understand LMD (list mode data) is a wrapper around FCS. See: https://github.com/RGLab/flowCore/blob/3f63a2e0ba8ebcccd9340ddbfda5d1807806c037/man/read.FCS.Rd https://github.com/RGLab/flowCore/blob/trunk/R/IO.R

yoavram avatar Sep 05 '15 21:09 yoavram

What's special about the Gallios machine? Do the lmd files follow the flow cytometry standard format? You can read about that format from the wikipedia page. https://en.wikipedia.org/wiki/Flow_Cytometry_Standard

Can you please upload an example lmd file to this issue?

Digging around a bit it seems that there's is some FCS intersection...

Beckman-Coulter Gallios produces LMD files that contain an FCS 3.0 compliant portion. They display the data as collected, if “True View” is used. If standard view is used, linear parameters are scaled 1-1024 and log parameters to four decades with a range of 1-1024. This is a display similar to FCS 2.0 data. Preferences in FlowJo control the scaling of the exported FCS 3.0 file. Data can be scaled identical to their acquisition display in true view OR standard view. http://docs.flowjo.com/vx/workspaces-and-samples/flowjo-and-your-cytometer/ws-cytometer-beckman/cxp/

jxramos avatar Jun 20 '19 00:06 jxramos

Hello! I have some lmd files generated from a BC Navios machine. Can I use R to change it to a fcs file and further use it through flowjo for post acquisition and formatting some of the gates? If yes, which version of R studio is compatible with the flowcore package?

SreejaMukherjee avatar Jun 03 '23 13:06 SreejaMukherjee