flowSet object for a
specified channel. For each sample in the flowSet object, we apply a
kernel-density estimator (KDE) and identify its local maxima (peaks).
We then aggregate these peaks to elicit a prior
parameters for each of K mixture components..prior_flowClust1d(flow_set, channel, K = NULL, hclust_height = NULL,
clust_method = c("kmeans", "hclust"), hclust_method = "complete",
artificial = NULL, nu0 = 4, w0 = 10, adjust = 2, min = -200,
max = NULL, vague = TRUE)flowSet objectflowSet from which we elicit the
prior parameters for the Student's t mixtureNULL and determined automaticallykmeans is used. However, if K is not
specified, hclust will be used instead.hclust. Default is
complete linkage.NULL (default), no artificial prior components are added.density for more information.NULL (default), no truncation is applied.NULL (default), no truncation is applied.logical Whether to elicit a vague prior. If TRUE, we first calculate the median of standard
deviations from all flowFrames. Then, we divide the overall standard
deviation by the number of groups to the scale the standard deviation.flowClust mixture component. We elicit the
prior variance for each mixture component by first assigning the observations
within each sample to the nearest prior mean. Then, we compute the variance
of the observations within each cluster. Finally, we average the variances
corresponding to each mixture component across all samples in the
flowSet object.Following Tibshirani et al. (2004), we cluster the peaks from each sample
using complete-linkage hierarchical clustering. The linkage type can be
changed via the hclust_method argument. This argument is passed
directly to hclust.
To cluster the peaks, we must cut the hierarchical tree by selecting either a
value for K or by providing a height of the tree to cut. By default,
we cut the tree using as the height the median of the distances between
adjacent peaks within each sample. This value can be changed via the
hclust_height argument and, if provided, will be passed to
cutree. Also, by default, the number of mixture components
K is NULL and is ignored. However, if K is provided,
then it has priority over hclust_height and is passed instead directly
to cutree.
To ensure that the KDEs are smooth, we recommend that the bandwidth set in
the adjust argument be sufficiently large. We have defaulted this
value to 2. If the bandwidth is not large enough, the KDE may contain
numerous bumps, resulting in erroneous peaks.