'Is there an R function to convert 'flowFrame' structure of 'flowCore' package to a 'data.frame'?
Objective: To view .fcs data as a dataframe using R language.
Flow Cytometry data comes in .fcs file format. The file is read in the flowFrame structure producers using the read function of flowCore package. I want to read it in R. How can I convert it to data.frame structure?
The data looks as below: -
Solution 1:[1]
use exprs function of the __ package.
Although its documentation isn't clearly stating this use case, it worked for me.
df = fcs@exprs
where,
fcs =read.FCS("File_lcoation", truncate_max_range = FALSE)
Requirements: -
flowCore (read.FCS)-Code:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("flowCore")
MetaCyto (exprs)-Code: if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")BiocManager::install("MetaCyto")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sachin Motwani |

