Extracts autofluorescence spectra from an unstained samples. Intended for use
with unmix.autospectral. Uses FlowSOM (EmbedSOM) clustering for rapid
identification of cells with similar AF profiles.
get.af.spectra(
unstained.sample,
asp,
spectra,
threads = NULL,
som.dim = 10,
figures = TRUE,
plot.dir = NULL,
table.dir = NULL,
title = NULL
)Path and file name for a unstained sample FCS file. The sample type and processing (protocol) method should match the fully stained samples to which the AF will be applied, ideally.
The AutoSpectral parameter list.
Spectral signatures of fluorophores, normalized between 0 and 1, with fluorophores in rows and detectors in columns.
Numeric. Number of threads to use for parallel processing in
the creation of the SOM. Default NULL reverts to asp$worker.process.n.
Number of x and y dimensions for the SOM. Default is 10.
Logical, whether to plot the spectral traces and heatmap for
the AF signatures. Default is TRUE.
Directory (folder) where the plots will be saved. Default is
NULL, which inherits from asp$figure.af.dir.
Directory (folder) where the spectra csv file will be saved.
Default is NULL, which inherits from asp$table.af.dir.
Title for the output spectral plots and csv file. Default is
Autofluorescence spectra.
A matrix of autofluorescence spectra.