slideimp: Numeric Matrices K-NN and PCA Imputation

Fast k-nearest neighbor (K-NN) and principal component analysis (PCA) imputation of missing values in high-dimensional numeric matrices, such as DNA methylation data. PCA imputation can use a locally optimal block preconditioned conjugate gradient (LOBPCG) eigensolver, which warm-starts each iteration from the previous eigenblock and search direction. Group-wise imputation, for example by chromosome, is recommended for Illumina DNA methylation arrays such as 450K and EPIC, and for other matrices with groupable columns. Sliding-window imputation imputes columns ordered by position. Tuning functions choose hyperparameters by masking observed values, imputing them, and scoring the result over repeated random masks. The Bayesian PCA sampler draws multiple imputations of the missing values. For whole-genome methylation data, such as whole-genome bisulfite sequencing (WGBS) or Enzymatic Methyl-seq (EM-seq), the sampler is recommended because such data are sparsely observed. The K-NN method is described in Troyanskaya et al. (2001) <doi:10.1093/bioinformatics/17.6.520>. PCA imputation is an optimized reimplementation of imputePCA() from the 'missMDA' package, described in Josse and Husson (2016) <doi:10.18637/jss.v070.i01>. The sampler implements the Bayesian method of MIPCA() in 'missMDA', described in Audigier, Husson and Josse (2016) <doi:10.1080/00949655.2015.1104683>.

Version: 1.3.0
Depends: R (≥ 4.4.0)
Imports: checkmate, cli, collapse, dqrng (≥ 0.4.1), mirai (≥ 2.5.0), Rcpp, RhpcBLASctl, rlang, stats, utils
LinkingTo: BH, dqrng (≥ 0.4.1), Rcpp, RcppEigen, RcppThread
Suggests: knitr, missMDA, quarto, rcpptimer, rmarkdown, testthat (≥ 3.2.3), withr
Published: 2026-11-23
DOI: 10.32614/CRAN.package.slideimp
Author: Hung Pham ORCID iD [aut, cre, cph], Francois Husson ORCID iD [ctb, cph] ('missMDA' imputePCA() and MIPCA(), reimplemented in R/pca_imp.R, src/pca_kernel.cpp, R/mi_pca_imp.R and src/mipca.cpp), Julie Josse ORCID iD [ctb, cph] ('missMDA' imputePCA() and MIPCA(), reimplemented in R/pca_imp.R, src/pca_kernel.cpp, R/mi_pca_imp.R and src/mipca.cpp), Vincent Audigier [ctb, cph] ('missMDA' MIPCA() Bayesian sampler, reimplemented in R/mi_pca_imp.R and src/mipca.cpp), Posit Software, PBC [cph] ('carrier' package code, adapted in R/crate.R and tests/testthat/test-crate*.R), Yixuan Qiu [ctb, cph] (Spectra library, vendored in src/Spectra), Gael Guennebaud [ctb, cph] (Eigen SelfAdjointEigenSolver code, adapted in src/Spectra/LinAlg/TridiagEigen.h), Jitse Niesen [ctb, cph] (Eigen SelfAdjointEigenSolver code, adapted in src/Spectra/LinAlg/TridiagEigen.h)
Maintainer: Hung Pham <amser.hoanghung at gmail.com>
BugReports: https://github.com/hhp94/slideimp/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/hhp94/slideimp, https://hhp94.github.io/slideimp/
NeedsCompilation: yes
Language: en-US
Citation: slideimp citation info
Materials: README, NEWS
CRAN checks: slideimp results

Documentation:

Reference manual: slideimp.html , slideimp.pdf
Vignettes: slideimp (source, R code)

Downloads:

Package source: slideimp_1.3.0.tar.gz
Windows binaries: r-devel: slideimp_1.2.0.zip, r-release: slideimp_1.3.0.zip, r-oldrel: slideimp_1.2.0.zip
macOS binaries: r-release (arm64): slideimp_1.3.0.tgz, r-oldrel (arm64): slideimp_1.3.0.tgz, r-release (x86_64): slideimp_1.3.0.tgz, r-oldrel (x86_64): slideimp_1.3.0.tgz
Old sources: slideimp archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=slideimp to link to this page.

mirror server hosted at Truenetwork, Russian Federation.