SlimR1.1.1 package

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

calculate_cluster_variability

Calculate Cluster Variability (Use in package)

calculate_expression_skewness

Calculate Expression Distribution Skewness (Use in package)

calculate_expression

Counts average expression of gene set (Use in package)

calculate_probability

Calculate gene set expression and infer probabilities with control dat...

Celltype_annotation_Cellmarker2

Uses "marker_list" from Cellmarker2 for cell annotation

Celltype_Annotation_Combined

Uses "marker_list" to generate combined plot for cell annotation

Celltype_annotation_Excel

Uses "marker_list" from Excel input for cell annotation

Celltype_Annotation_Features

Annotate cell types using features plot with different marker database...

Celltype_Annotation_Heatmap

Uses "marker_list" to generate heatmap for cell annotation

Celltype_annotation_PanglaoDB

Uses "marker_list" from PanglaoDB for cell annotation

Celltype_Annotation_PerCell

Annotate Seurat Object with Per-Cell SlimR Predictions

Celltype_annotation_Seurat

Uses "marker_list" from Seurat object for cell annotation

Celltype_Annotation

Annotate Seurat Object with SlimR Cell Type Predictions

Celltype_Calculate_PerCell

Per-cell annotation using marker expression and optional UMAP spatial ...

Celltype_Calculate

Uses "marker_list" to calculate probability, prediction results, AUC a...

Celltype_Verification_PerCell

Verify per-cell annotations with marker expression dotplot

Celltype_Verification

Perform cell type verification and generate the validation dotplot

compute_adaptive_parameters

Compute Adaptive Parameters Based on Dataset Features (Use in package)

dot-apply_umap_smoothing

Apply UMAP-based spatial smoothing to scores

dot-compute_aucell_scores

Compute AUCell-like rank-based scores

dot-compute_weighted_scores

Compute weighted scores for per-cell annotation

estimate_batch_effect

Estimate Batch Effect Strength (Use in package)

extract_dataset_features

Extract Dataset Characteristics for Adaptive Parameter Calculation (Us...

Markers_filter_Cellmarker2

Create Marker_list from the Cellmarkers2 database

Markers_filter_PanglaoDB

Create Marker_list from the PanglaoDB database

Parameter_Calculate

Adaptive Parameter Tuning for Single-Cell Data Annotation in SlimR

percell_workflow

Per-Cell Annotation Workflow Example

plot.pheatmap

Plot Method for pheatmap Objects

Read_excel_markers

Create "Marker_list" from Excel files ".xlsx"

Read_seurat_markers

Create "Marker_list" from Seurat object

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).

  • Maintainer: Zhaoqing Wang
  • License: MIT + file LICENSE
  • Last published: 2026-02-05