title |
---|
The 'Ckmeans.1d.dp' R package |
The package provides a powerful set of tools for fast, optimal, and reproducible univariate clustering by dynamic programming. It is practical to cluster millions of sample points into a few clusters in seconds using a single core on a typical desktop computer. It solves four types of problem, including univariate
The Ckmeans.1d.dp algorithms cluster (weighted) univariate data given by a numeric vector
Excluding the time for sorting
As an alternative to popular heuristic clustering methods, this package provides functionality for (weighted) univariate clustering, segmentation, and peak calling with guaranteed optimality and efficiency.
An adaptive histogram based on optimal clusters is also recommended if an equal-bin-width histogram is inadequate to characterize clusters that vary in width.
install.packages("Ckmeans.1d.dp")
Song M, Zhong H (2020). "Efficient weighted univariate clustering maps outstanding dysregulated genomic zones in human cancers." Bioinformatics, 36(20), 5027–5036. https://doi.org/10.1093/bioinformatics/btaa613
Wang H, Song M (2011). "Ckmeans.1d.dp: Optimal k-means clustering in one dimension by dynamic programming." The R Journal, 3(2), 29–33. https://doi.org/10.32614/RJ-2011-015