Skip to content

C3BI-pasteur-fr/CyFj11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CyFj11: Parse and Extract Data from FlowJo v11 Workspace Files

Lifecycle: experimental

The CyFj11 package provides tools to parse FlowJo v11 workspace files (.flowjo) and extract gating information, populations, and associated FCS files.

Installation

You can install the development version of CyFj11 from GitHub with:

# install.packages("devtools")
devtools::install_github("yourusername/CyFj11")

Overview

Flow cytometry data analysis often involves complex gating strategies that are stored in FlowJo workspace files. The CyFj11 package allows you to:

  • Parse FlowJo v11 workspace files
  • Extract gating hierarchies and populations
  • Resolve associated FCS files
  • Convert workspaces to GatingSet objects for advanced analysis
  • Export GatingSet objects to FlowJo v10 workspace format (.xml)

FlowJo v10 Export Support

The package provides comprehensive support for exporting GatingSet objects to FlowJo v10 workspace format:

Supported Gate Types

  • RectangleGate: 1D and 2D rectangular gates with min/max boundaries
  • PolygonGate: Irregular polygonal gates defined by vertices
  • EllipsoidGate: Elliptical gates defined by center and covariance matrix
  • BooleanGate: Logical combinations of gates (AND, OR, NOT operations)

Supported Transformations

  • Linear transformations (linearTransform) with minRange and maxRange parameters
  • Logarithmic transformations (logTransform) with offset and decades parameters
  • Biexponential transformations (biexTransform) with length, maxRange, neg, width, and pos parameters
  • Arcsinh transformations (asinhtGml2Transform) with length, maxRange, T, A, M, and W parameters
  • Logicle transformations (logicleTransform) with length, T, A, W, and M parameters

Export Limitations

  • Quadrant gates are not currently supported in the export functionality
  • Some advanced FlowJo v11 features may not translate perfectly to the v10 format
  • Coordinate transformations may introduce small inaccuracies due to conversion between data and display spaces

Vignettes

The package includes essential vignettes to help you get started:

Main Functions

  • read_flowjo11_workspace() - Main function to read and parse FlowJo v11 workspace files
  • fj11_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 format
  • set_verbose() - Enable/disable verbose output for debugging
  • get_verbose() - Check current verbose output setting

Example Usage

library(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")

Verbose Output

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:

  • File processing steps
  • Gate conversion progress
  • Data extraction operations
  • Error conditions and warnings

This can be particularly useful when troubleshooting issues with workspace parsing or FCS file resolution.

Code of Conduct

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors