The function takes in a flowframe and identifies debris contained in the provided flowframe.
debris_nc(flowframe, p1, p2)
flowframe with debris and other cells.
first flowcytometer channel that can be used to separate debris from the rest, e.g. "RED.B.HLin".
second flowcytometer channel that can be used to separate debris from the rest, e.g. "YEL.B.HLin"
list containing;
syn - flowframe containing non-debris particles
deb_pos - position of particles that are debris
syn_pos - position of particles that are not debris
The function uses the getPeaks
and
deGate
functions in the flowDensity package to
identify peaks between peaks and identify cut-off points between these peaks.
A plot of both channels supplied with horizontal line separating
debris from other cell populations is also returned.