SlimR: Adaptive Machine Learning-Powered, Context-Matching Tool for Single-Cell and Spatial Transcriptomics Annotation

Annotates single-cell and spatial-transcriptomic (ST) data using context-matching marker datasets. It creates a unified marker list (`Markers_list`) from multiple sources: built-in curated databases ('Cellmarker2', 'PanglaoDB', 'scIBD', 'TCellSI', 'PCTIT', 'PCTAM'), Seurat objects with cell labels, or user-provided Excel tables. SlimR first uses adaptive machine learning for parameter optimization, and then offers two automated annotation approaches: 'cluster-based' and 'per-cell'. Cluster-based annotation assigns one label per cluster, expression-based probability calculation, and AUC validation. Per-cell annotation assigns labels to individual cells using three scoring methods with adaptive thresholds and ratio-based confidence filtering, plus optional UMAP spatial smoothing, making it ideal for heterogeneous clusters and rare cell types. The package also supports semi-automated workflows with heatmaps, feature plots, and combined visualizations for manual annotation. For more details, see Kabacoff (2020, ISBN:9787115420572).

Getting started

Package details

AuthorZhaoqing Wang [aut, cre] (ORCID: <https://orcid.org/0000-0001-8348-7245>)
MaintainerZhaoqing Wang <zhaoqingwang@mail.sdu.edu.cn>
LicenseMIT + file LICENSE
Version1.1.1
URL https://github.com/zhaoqing-wang/SlimR
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("SlimR")

Try the SlimR package in your browser

Any scripts or data that you put into this service are public.

SlimR documentation built on Feb. 5, 2026, 5:08 p.m.