'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: -

enter image description here



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: -

  1. flowCore (read.FCS)-Code:

    if (!require("BiocManager", quietly = TRUE))

    install.packages("BiocManager")

    BiocManager::install("flowCore")

  2. 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