This function removes autofluorescence contamination from a sample, using the specified parameters and settings.
remove.af(
clean.expr,
samp,
spectral.channel,
peak.channel,
universal.negative,
asp,
scatter.param,
negative.n = 500,
positive.n = 1000,
scatter.match = TRUE,
main.figures = TRUE,
intermediate.figures = FALSE,
verbose = TRUE
)List containing cleaned expression data.
Sample identifier.
Vector of spectral channel names.
Vector of peak detection channels for fluorophores.
Named vector mapping samples to their matching negatives.
The AutoSpectral parameter list.
Prepare using get.autospectral.param
Vector of scatter parameters.
Integer. Number of events to include in the downsampled
negative population. Default is 500.
Integer. Number of events to include in the downsampled
positive population. Default is 1000.
Logical, default is TRUE. Whether to select negative
events based on scatter profiles matching the positive events. Defines a
region of FSC and SSC based on the distribution of selected positive events.
Logical, if TRUE creates the main figures to show the
impact of intrusive autofluorescent event removal and scatter-matching for
the negatives.
Logical, if TRUE returns additional figures to
show the inner workings of the cleaning, including definition of low-AF cell
gates on the PCA-unmixed unstained and spectral ribbon plots of the AF
exclusion from the unstained.
Logical, default is TRUE. Set to FALSE to suppress messages.
A matrix containing the expression data with autofluorescent events removed for the sample.