SNPkit

R-CMD-check CRAN status CRAN downloads pkgdown GitHub issues

SNPkit is an R package designed for manipulation, organization, and analysis of genotypic data, with a strong focus on integration with tools such as FImpute and PLINK.

It provides robust S4-based data structures for storing genotypes and marker maps, along with functions to combine different genotype panels, summarize data, and prepare files for imputation and selection pipelines.

Key capabilities:


๐Ÿ“ฆ Installation

SNPkit depends on snpStats, which is distributed through Bioconductor. Install it first:

if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")
BiocManager::install("snpStats")

Then install the stable release from CRAN:

install.packages("SNPkit")

Or install the development version (latest features) from GitHub:

# install.packages("remotes")
remotes::install_github("viniciusjunqueira/SNPkit")

Optional: faster PCA

runPCA() and runAnticlusteringPCA() can use RSpectra for a much faster, low-memory truncated PCA on wide genotype data. It is optional โ€” install it to enable the fast path:

install.packages("RSpectra")

๐Ÿ“– Documentation

The full package website with detailed function reference and vignettes is available at:

Key pages:


๐Ÿ“„ License

SNPkit is licensed under the GPL-3 license.