Numeric Matrices K-NN and PCA Imputation
Overview
Fast k-nearest neighbors (K-NN) and principal component analysis (PCA) imputation algorithms for missing values in epigenetic data or other high-dimensional numeric matrices. For PCA, a locally optimal block preconditioned conjugate gradient (LOBPCG) eigensolver with warm starts of both the eigenblock and search direction is also supported. Two complementary imputation strategies are available. Group-wise imputation (e.g., by chromosome) is recommended for Illumina DNA methylation microarrays (e.g., 450K, EPIC) and other matrices with groupable columns. A sliding window approach for K-NN or PCA imputation is recommended only for whole-genome methylation data such as whole-genome bisulfite sequencing (WGBS) or Enzymatic Methyl-seq (EM-seq). The package also supports hyperparameter tuning via repeated cross-validation. The K-NN algorithm is described in: Hastie, T., Tibshirani, R., Sherlock, G., Eisen, M., Brown, P. and Botstein, D. (1999) "Imputing Missing Data for Gene Expression Arrays". The PCA imputation is an optimized reimplementation of the imputePCA() function from the 'missMDA' package described in: Josse, J. and Husson, F. (2016) doi:10.18637/jss.v070.i01 "missMDA: A Package for Handling Missing Values in Multivariate Data Analysis".
Breaking changes
knn_imp()no longer supports Ball Tree-based imputation due to lower
accuracy compared to brute-force K-NN.
New features
pca_imp()gained a.progressargument to display imputation progress.
Minor improvements and fixes
- Fixed
pca_imp()tests that broke due to upstream changes in
missMDA::imputePCA() and FactoMineR::svd.triplet().
- Implemented an internal
.crate()function, a minimal version of
carrier::crate().
DESCRIPTIONnow describes the LOBPCG eigensolver and its warm-start
behavior across EM iterations in pca_imp().
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
- Minor wording improvements.
- Added citation information.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-21
- ERROR11 OK, 2 ERROR2026-06-12
- OK12 OK2026-04-25
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-17
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 18 (1 internal)includes a package overview page
- Examples that run
- 100%17 run in a plain check (2 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 11%
- slideimp HTML
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 0
Releases over time
Issues over time
Commits over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/hhp94/slideimp on 2026-10-11.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2026-08-12 · The repository has a site deploy workflow
pkgdown site last built 2026-08-12
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-04-22Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.md
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.2.0Latest
- 1.1.02026-05-01 · diff ↗ ·
removed 1 export
register_group_resolveradded 3 exports
lobpcg_control, mat_miss, slideimp_resolve_group - RR 4.6.0 released · 2026-04-24
- 1.0.02026-04-16 · diff ↗ ·
removed 1 export
group_featuresadded 3 exports
prep_groups, register_group_resolver, sample_na_loc - 0.5.42026-01-07
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-01-07
- Total releases
- 4 / 1 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.3.0
- Download size
- 132 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("slideimp")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1093/bioinformatics/btag318.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.