kmeansFilter-class {flowCore} | R Documentation |
A filter that performs one-dimensional k-means (Lloyd-Max) clustering on a parameter
kmeansFilter(filterId = "kmeans",...)
filterId |
An optional parameter that sets the filterId of this gate. |
... |
This gate takes a parameter name and a list of populations |
The one-dimensional k-means filter is a multiple population filter capable of operating on a single parameter. It takes either a list containing a single element or a parameter argument associated with two or more populations. Populations are considered to be ordered such that the population with the smallest mean intensity will be the first population in the list and the population with the highest mean intensity will be the last population listed.
Returns a kmeansFilter
object for use in filtering flowFrame
s or
other flow cytometry objects.
B. Ellis and N. LeMeur
a.1 = kmeansFilter("a","FSC-H"=c("Pop1","Pop2","Pop3")) #is equivalent to b.1 = kmeansFilter("b",list("FSC-H"=c("Pop1","Pop2","Pop3"))) summary(filter(read.FCS(system.file("extdata","0877408774.B08", package="flowCore")),a.1)) summary(filter(read.FCS(system.file("extdata","0877408774.B08", package="flowCore")),b.1))