User guide for executing `CytOpT` on `HIPC` data
Paul Freulon, Jérémie Bigot, Kalidou BA, Boris Hejblum
2022-02-15
Source:vignettes/CytOpt_HIPC.Rmd
CytOpt_HIPC.Rmd
Introduction
CytOpT
is a supervised method that directly estimates the cell proportions in a flow-cytometry data set by using a source gating as its input and relies on regularized optimal transport.
Analysis of HIPC data
As an illustrative example, we analyze here the flow cytometry data from the T-cell panel of the Human Immunology Project Consortium (HIPC) publicly available on ImmuneSpace Gottardo et al. [2014].
An HIPC
data set has the following structure (split into 2 files):
-
xx_y_values
: flow-cytometry measurements -
xx_y_clust
: file with the corresponding manual clustering
Above, xx
denotes the center where the data analysis was performed, and y
denotes the patient and the replicate of the biological sample in question.
Data load
Here are the first few lines of the flow-cytometry measurements from patient 1228 replicate 1A:
The manual clustering of these data into 10 cell populations (CD8 Effector, CD8 Naive, CD8 Central Memory, CD8 Effector Memory, CD8 Activated, CD4 Effector, CD4 Naive, CD4 Central Memory, CD4 Effector Memory, CD4 Activated) can be accessed from the HIPC_Stanford_1228_1A_labels
object.
We will use the manual gating from patient 1228 replicate 1A as our source proportions to infer proportions for patient 1369 replicate 1A.
Computation of the benchmark class proportions for target data
Because in this example, we know the true proportions in the target data set HIPC_Stanford_1369_1A
, we can assess the gap between the estimate form CytOpt
and the cellular proportions from the reference manual gating. For this purpose, we compute those manual proportions with:
CytOpT
Results
The results from CytOpt
for both optimization algorithms are:
summary(res)
Some visualizations are provided by the plot()
method:
plot(res)
Performance evaluation
Concordance between the manual gating gold-standard and CytOpt
estimation can be graphically diagnosed with Bland-Altman plots:
Bland_Altman(res$proportions)
The methods implemented in the CytOpt
package are detailed in the following article:
Paul Freulon, Jérémie Bigot, Boris P. Hejblum. CytOpT: Optimal Transport with Domain Adaptation for Interpreting Flow Cytometry data https://arxiv.org/abs/2006.09003