Description Usage Arguments Value
View source: R/cytofin_make_plots.R
When given the output data structure from cytofin_normalize
or cytofin_normalize_nrs
,
this function plots mean and variance plots for all normalized .fcs files and their
associated anchors.
1 2 3 4 5 | cytofin_make_plots(
normalization_result,
which_rows = 1:nrow(normalization_result),
val_path = "none"
)
|
normalization_result |
An output data.frame produced by the The following columns should be present: |
which_rows |
A numeric vector indicating which rows of |
val_path |
The folder directory containing validation (i.e. bead-normalized) .fcs files corresponding to the input .fcs files in the metadata table. (Optional). |
8 diagnostic plots are made for each input .fcs file that was batch
normalized (i.e. each .fcs file represented as a row in normalization_result
).
From left-to-right (and top-to-bottom), these plots represent the following:
The entry in the universal mean vector corresponding to each antigen in the consensus antigen panel. X-axis: antigen index in the universal mean vector. Y-axis: Arcsinh-transformed entry in the universal mean vector corresponding to each antigen.
The mean (across all cells) antigen expression vector for the anchor associated with each input .fcs file both before and after normalization. X-axis: antigen index (as in plot 1). Y-axis: Mean antigen expression in the anchor .fcs file.
The mean (across all cells) antigen expression vector for each input .fcs file both before and after normalization. X-axis: antigen index (as in plot 1). Y-axis: Mean antigen expression in the input .fcs file.
The mean (across all cells) antigen expression vector for each "validation"
(i.e. bead-normalized) .fcs file both before and after bead-normalization.
This plot can be used to compare CytofIn batch normalization with gold-
standard approaches. If val_path
is "none", this plot will be identical to
plot 3 (see above).
X-axis: antigen index (as in plot 1). Y-axis: Mean antigen expression in the
validation .fcs file.
The entry in the universal standard deviation vector corresponding to each antigen in the consensus antigen panel. X-axis: antigen index in the universal standard deviation vector. Y-axis: Arcsinh-transformed entry in the universal standard deviation vector corresponding to each antigen.
The standard deviation (across all cells) antigen expression vector for the anchor associated with each input .fcs file both before and after normalization. X-axis: antigen index (as in plot 1). Y-axis: the standard deviation of all antigen expression values in the anchor .fcs file.
The standard deviation (across all cells) antigen expression vector for each input .fcs file both before and after normalization. X-axis: antigen index (as in plot 1). Y-axis: the standard deviation of all antigen expression values in the input .fcs file.
The standard deviation (across all cells) antigen expression vector for each "validation"
(i.e. bead-normalized) .fcs file both before and after bead-normalization.
This plot can be used to compare CytofIn batch normalization with gold-
standard approaches. If val_path
is "none", this plot will be identical to
plot 3 (see above).
X-axis: antigen index (as in plot 1). Y-axis: Standard deviation of all
antigen expression values in the validation .fcs file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.