This function identifies and processes the universal negative control for a given sample, including scatter matching and plotting.
get.universal.negative(
clean.expr.data,
samp,
universal.negatives,
scatter.param,
peak.channels,
downsample,
negative.n,
positive.n,
spectral.channel,
asp,
control.type,
scatter.match = TRUE,
intermediate.figures = FALSE,
main.figures = TRUE,
verbose = TRUE
)List containing cleaned expression data.
Sample identifier.
Named vector mapping samples to their universal negatives.
Vector of scatter parameters.
Named vector mapping samples to their peak channels.
Logical indicating whether to downsample the data.
Number of negative events to select.
Number of positive events to select.
Vector of spectral channel names.
The AutoSpectral parameter list.
Prepare using get.autospectral.param
Named vector mapping samples to their control types.
Logical indicating whether to perform scatter matching.
Default is TRUE.
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. Default is FALSE to speed up processing.
Logical, if TRUE creates the main figures to show the
impact of intrusive autofluorescent event removal and scatter-matching for
the negatives.
Logical, default is TRUE. Set to FALSE to suppress messages.
A data frame containing the selected positive and scatter-matched negative events.