Assesses variation in the spectral signature of a single-stained flow cytometry control sample. Uses SOM-based clustering on the brightest positive events in the file.
get.fluor.variants(
fluor,
file.name,
control.dir,
spectra,
af.spectra,
spectral.channel,
universal.negative,
control.type,
raw.thresholds,
unmixed.thresholds,
flow.channel,
som.dim,
n.cells,
asp,
verbose,
output.dir,
sim.threshold,
figures
)The name of the fluorophore.
A named vector of file names for the samples.
The directory containing the control files.
A matrix containing the spectral data. Fluorophores in rows, detectors in columns.
Spectral signatures of autofluorescences, normalized
between 0 and 1, with fluorophores in rows and detectors in columns. Prepare
using get.af.spectra.
A vector of spectral channels.
A named vector of unstained negative samples, with names corresponding to the fluorophores.
Character, either "beads" or "cells". Determines the type of control sample being used and the subsequent processing steps.
A named vector of numerical values corresponding to the threshold for positivity in each raw detector channel. Determined by the 99.5th percentile on the unstained sample, typically.
A named vector of numerical values corresponding to the threshold for positivity in each unmixed channel. Determined by the 99.5th percentile on the unstained sample, typically after single-cell AF unmixing.
A named vector of peak raw channels, one per fluorophore.
Numeric, default 10. Number of x and y dimensions to use in
the SOM for clustering the spectral variation.
Numeric, default 2000. Number of cells to use for defining
the variation in spectra. Up to n.cells cells will be selected as positive
events in the peak channel for each fluorophore, above the pos.quantile in
the unstained sample.
The AutoSpectral parameter list.
Prepare using get.autospectral.param
Logical, default is TRUE. Set to FALSE to suppress messages.
File path to whether the figures and .rds data file will be
saved. Default is NULL, in which case asp$variant.dir will be used.
Numeric, default 0.98. Threshold for cosine similarity-
based exclusion of spectral variants. Any variant less than sim.threshold
by cosine.similarity from the optimized spectrum for that fluorophore (from
spectra) will be excluded from output. This helps to exclude autofluorescence
contamination.
Logical, controls whether the variation in spectra for each
fluorophore is plotted in output.dir. Default is TRUE.
A matrix with the flow expression data.