Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Nov 5:12:768541.
doi: 10.3389/fimmu.2021.768541. eCollection 2021.

FlowKit: A Python Toolkit for Integrated Manual and Automated Cytometry Analysis Workflows

Affiliations

FlowKit: A Python Toolkit for Integrated Manual and Automated Cytometry Analysis Workflows

Scott White et al. Front Immunol. .

Abstract

An important challenge for primary or secondary analysis of cytometry data is how to facilitate productive collaboration between domain and quantitative experts. Domain experts in cytometry laboratories and core facilities increasingly recognize the need for automated workflows in the face of increasing data complexity, but by and large, still conduct all analysis using traditional applications, predominantly FlowJo. To a large extent, this cuts domain experts off from the rapidly growing library of Single Cell Data Science algorithms available, curtailing the potential contributions of these experts to the validation and interpretation of results. To address this challenge, we developed FlowKit, a Gating-ML 2.0-compliant Python package that can read and write FCS files and FlowJo workspaces. We present examples of the use of FlowKit for constructing reporting and analysis workflows, including round-tripping results to and from FlowJo for joint analysis by both domain and quantitative experts.

Keywords: FlowJo; GatingML; flow cytometry; python (programming language); single cell data science; software; systems immunology.

PubMed Disclaimer

Conflict of interest statement

Authors JQ and JA were employed by BD Biosciences - FlowJo. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Figure 1
Figure 1
Basic elements provided by FlowKit for generating reports and downstream analysis. Clockwise from top left – metadata as key:value pairs, gating hierarchy as ASCII text, scatter plot of a gate, DataFrame of results from applying gating strategy specified in the Session class.
Figure 2
Figure 2
Comparison of marker distributions across CD4+ and CD8+ T cells.
Figure 3
Figure 3
Comparison of dimension reduction algorithms on the Singlets (left) and CD3+ (right) gated events. Events are pseudo-colored by the CD4 marker intensity.
Figure 4
Figure 4
(A) Comparison of the Leiden and Louvain community detection algorithms for clustering flow cytometry data. Labels in boxes are the assigned cluster indexes. Events plotted using PaCMAP for dimension reduction and colored according to the event cluster label. (B) Visualization of marker distribution for each cluster found using the Leiden algorithm shown in the top panel. Distributions are for values scaled to have zero mean and unit standard deviation; values to the left (right) of the thin vertical indicate mean marker values for that cluster that are below (above) the average for all cells.
Figure 5
Figure 5
Screenshot taken from FlowJo, showing an imported workspace that is entirely programmatically constructed.

References

    1. Spidlen J, Moore W, Force IDST, Brinkman RR. Isac’s Gating-ML 2.0 Data Exchange Standard for Gating Description. Cytometry A (2015) 87(7):683–7. doi: 10.1002/cyto.a.22690 - DOI - PMC - PubMed
    1. Staats JS, Enzor JH, Sanchez AM, Rountree W, Chan C, Jaimes M, Chan RC, et al. . Toward Development of a Comprehensive External Quality Assurance Program for Polyfunctional Intracellular Cytokine Staining Assays. J Immunol Methods (2014) 409:44–53. doi: 10.1016/j.jim.2014.05.021 - DOI - PMC - PubMed
    1. Hahne F, LeMeur N, Brinkman RR, Ellis B, Haaland P, Sarkar D, et al. . Flowcore: A Bioconductor Package for High Throughput Flow Cytometry. BMC Bioinf (2009) 10:106. doi: 10.1186/1471-2105-10-106 - DOI - PMC - PubMed
    1. Finak G, Jiang M. Flowworkspace: Infrastructure for Representing and Interacting With Gated and Ungated Cytometry Data Sets. In: R Package Version 4.4.0 (2021). doi: 10.18129/B9.bioc.flowWorkspace - DOI
    1. Linderman GC, Rachh M, Hoskins JG, Steinerberger S, Kluger Y. Fast Interpolation-Based T-SNE for Improved Visualization of Single-Cell RNA-Seq Data. Nat Methods (2019) 16(3):243–5. doi: 10.1038/s41592-018-0308-4 - DOI - PMC - PubMed

Publication types

LinkOut - more resources