Last active
February 2, 2022 19:01
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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