Skip to content

Instantly share code, notes, and snippets.

@yoavram
Last active February 2, 2022 19:01
Show Gist options
  • Save yoavram/198493cebbf0b323a9d8 to your computer and use it in GitHub Desktop.
Save yoavram/198493cebbf0b323a9d8 to your computer and use it in GitHub Desktop.
Convert flow cytometry formats: Gallios Coulter Beckman LMD file to standard FCS file.
# install
source("http://bioconductor.org/biocLite.R")
biocLite("flowCore")
# convert
library(tools) # for file_path_sans_ext
library(flowCore)
in.fname <- 'flow123.LMD'
folder <- 'C:\\users\\user\\flow\\'
x <- read.FCS(paste0(folder, in.fname))
summary(x)
out.fname <- paste0(file_path_sans_ext(in.fname), '.fcs')
write.FCS(x, paste0(folder, out.fname))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment