The CyFj11 package provides tools to parse FlowJo v11 workspace files (.flowjo) and extract gating information, populations, and associated FCS files.
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("CyFj11", version = "devel")
# install.packages("devtools")
devtools::install_github("C3BI-pasteur-fr/CyFj11")
Flow cytometry data analysis often involves complex gating strategies that are stored in FlowJo workspace files. The CyFj11 package allows you to:
The package provides comprehensive support for exporting GatingSet objects to FlowJo v10 workspace format:
linearTransform) with minRange and maxRange parameterslogTransform) with offset and decades parametersbiexTransform) with length, maxRange, neg, width, and pos parametersasinhtGml2Transform) with length, maxRange, T, A, M, and W parameterslogicleTransform) with length, T, A, W, and M parametersThe package includes essential vignettes to help you get started:
read_flowjo11_workspace() - Main function to read and parse FlowJo v11 workspace filesfj11_to_gatingset() - Convert FlowJo v11 workspace to GatingSet object (now with improved handling of multiple FCS file matches)export_flowjo10_workspace() - Export GatingSet object to FlowJo v10 workspace formatset_verbose() - Enable/disable verbose output for debuggingget_verbose() - Check current verbose output settinglibrary(CyFj11)
# Read a FlowJo workspace
workspace <- read_flowjo11_workspace("path/to/workspace.fjw")
# Convert to GatingSet for advanced analysis
gs <- fj11_to_gatingset(workspace, group_name = 1, path = "/path/to/fcs/files")
# Export a GatingSet to FlowJo v10 format
export_flowjo10_workspace(gs, "exported_workspace.xml")
The package includes a verbose mode that can be helpful for debugging and monitoring the package's operations. To enable verbose output:
# Enable verbose output
set_verbose(TRUE)
# Perform operations with detailed output
ws <- read_flowjo11_workspace("path/to/workspace.fjw")
gs <- fj11_to_gatingset(ws, group_name = 1, path = "/path/to/fcs/files")
# Disable verbose output
set_verbose(FALSE)
When verbose mode is enabled, the package will print detailed information about:
This can be particularly useful when troubleshooting issues with workspace parsing or FCS file resolution.
Please note that the CyFj11 project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.