| Title: | Explainable Confidence Scoring for Single-Cell Annotations |
|---|---|
| Description: | cellCertR provides an explainable confidence scoring framework for single-cell RNA sequencing annotations using marker enrichment, neighborhood agreement, entropy-based uncertainty estimation, and ontology-aware label matching. |
| Authors: | Jaya Surya Doddetipalli [aut, cre] (ORCID: <https://orcid.org/0009-0002-8975-4425>) |
| Maintainer: | Jaya Surya Doddetipalli <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.99.1 |
| Built: | 2026-07-01 15:46:08 UTC |
| Source: | https://github.com/BiocStaging/scCertify |
Converts raw confidence scores into calibrated percentile scores.
calibrate_confidence(scores)calibrate_confidence(scores)
scores |
Numeric vector |
Numeric vector
scores <- c( 0.2, 0.5, 0.8 ) calibrate_confidence( scores )scores <- c( 0.2, 0.5, 0.8 ) calibrate_confidence( scores )
Main confidence scoring framework.
cell_certify(object, markers, label_column = "predicted_label")cell_certify(object, markers, label_column = "predicted_label")
object |
Seurat object |
markers |
Named marker list |
label_column |
Metadata label column |
Seurat object
NULLNULL
Converts confidence scores into confidence classes.
classify_confidence(scores)classify_confidence(scores)
scores |
Numeric vector |
Character vector
scores <- c( 0.2, 0.7, 0.9 ) classify_confidence( scores )scores <- c( 0.2, 0.7, 0.9 ) classify_confidence( scores )
Calculates entropy from prediction score matrices.
entropy_score(score_matrix)entropy_score(score_matrix)
score_matrix |
Numeric matrix |
Numeric vector
mat <- matrix( runif(20), nrow = 5 ) entropy_score( mat )mat <- matrix( runif(20), nrow = 5 ) entropy_score( mat )
Provides interpretable explanation for confidence scores.
explain_cell(object, cell_id)explain_cell(object, cell_id)
object |
Seurat object |
cell_id |
Cell barcode |
Character vector
NULLNULL
Explains why a cell received its confidence score.
explain_confidence(object, cell_id)explain_confidence(object, cell_id)
object |
Seurat object |
cell_id |
Cell barcode |
Character vector
NULLNULL
Uses UCell enrichment scoring for marker evaluation.
marker_score(object, markers, label_column = "predicted_label")marker_score(object, markers, label_column = "predicted_label")
object |
Seurat object |
markers |
Named marker list |
label_column |
Metadata label column |
Numeric vector
NULLNULL
Matches predicted labels to marker database labels.
match_labels(label, marker_names)match_labels(label, marker_names)
label |
Character label |
marker_names |
Character vector |
Character vector
match_labels( "T_cells", c( "T_cell", "B_cell" ) )match_labels( "T_cells", c( "T_cell", "B_cell" ) )
Computes local neighborhood agreement scores.
neighbor_score( object, reduction = "pca", dims = NULL, k = 10, label_column = "predicted_label" )neighbor_score( object, reduction = "pca", dims = NULL, k = 10, label_column = "predicted_label" )
object |
Seurat object |
reduction |
Reduction method |
dims |
PCA dimensions |
k |
Number of neighbors |
label_column |
Metadata label column |
Numeric vector
NULLNULL