RemoveDoublets | R Documentation |
RemoveDoublets
will remove doublet events from the
flowframe based on two channels.
RemoveDoublets(ff, channel1="FSC-A", channel2="FSC-H", nmad=4,
verbose=FALSE, output="frame")
ff |
A flowframe that contains flow cytometry data. |
channel1 |
The first channels that will be used to determine the doublet events. Default is "FSC-A" |
channel2 |
The second channels that will be used to determine the doublet events. Default is "FSC-H" |
nmad |
Bandwidth above the ratio allowed (cells are kept if their
ratio is smaller than the median ratio + |
verbose |
If set to TRUE, the median ratio and width will be printed. Default is FALSE. |
output |
If set to "full", a list with the filtered flowframe and the indices of the doublet event is returned. If set to "frame", only the filtered flowframe is returned. The default is "frame". |
This function returns either a filtered flowframe when the
output
parameter is set to "frame" or a list containing the filtered
flowframe and a TRUE/FALSE list indicating the margin events. An extra column
named "Original_ID" is added to the flowframe where the cells are given their
original cell id.
# Read in data
fileName <- system.file("extdata", "111.fcs", package="PeacoQC")
ff <- flowCore::read.FCS(fileName)
# Remove doublets
ff_cleaned <- RemoveDoublets(ff)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.