Adaptive Machine Learning-Powered, Context-Matching Tool for Single-Cell and Spatial Transcriptomics Annotation
Overview
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', 'ScType', 'CellTypist', 'scBaseCount', '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 information, see the package documentation at https://github.com/zhaoqing-wang/SlimR.
- **New Features**
- Added the
scBaseCountdatabase, covering Human, Mouse, Drosophila, and Zebrafish, with four species-specific marker gene set lists:human_gene_sets,mouse_gene_sets,fly_gene_sets, andzebrafish_gene_sets. - New function
Compute_Gene_PRC(): Computes PRC-AUC (Average Precision) and the no-skill baseline for a single gene against a user-defined cell group. ComplementsCompute_Gene_AUC_ROC()and is better suited to rare cell types under dropout and background contamination. - **Improvements**
- Added roxygen2 documentation and citation for
scBaseCount(Youngblut et al., 2026, doi:10.1016/j.cell.2026.08.025), plus README section 2.5. - Added README section 5.3 for single-gene PRC-AUC analysis.
- Updated general documentation and README structure.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-10
- ERROR13 OK, 1 ERROR2026-04-09
- OK14 OK2026-03-10
Documentation
Documentation signals are not tracked yet for this package.
Downloads
Repository
Checks run against github.com/zhaoqing-wang/slimr on 2026-10-11.
No development-tooling practices detected in the upstream repository.
Dependencies
Code & Tests
Datasets
People & History
Maintainer since 1.0.3 (2025)
- 1.2.0Latest2026-10-16 · current release · diff ↗ ··
added 2 exports
Compute_Gene_PRC, Plot_Group_Gene_Heatmaplisted once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-16 02:28 UTC, so it stayed less than the time between readings. - 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- RR 4.6.0 released · 2026-04-24
- 1.1.32026-04-07 · diff ↗
- 1.1.2
- 1.1.12026-02-05 · diff ↗ ·
added 3 exports
Celltype_Annotation_PerCell, Celltype_Calculate_PerCell, Celltype_Verification_PerCell - 1.1.02026-01-20 · diff ↗
- 1.0.92025-12-17 · diff ↗
- 1.0.8
- 1.0.72025-08-19 · diff ↗ ·
removed 4 exports
Celltype_annotation_Box, Celltype_annotation_Heatmap, read_excel_markers, read_seurat_markersadded 8 exports
Celltype_Annotation, Celltype_Annotation_Combined, Celltype_Annotation_Features, Celltype_Annotation_Heatmap, Celltype_Calculate, Celltype_Verification, Read_excel_markers, Read_seurat_markers - 1.0.32025-07-29
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-07-29
- Total releases
- 13 / 1 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 1.0.7
- Download size
- 3.5 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("SlimR")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.