Package: scDiagnostics 1.7.2

Anthony Christidis

scDiagnostics: Cell type annotation diagnostics

The scDiagnostics package provides diagnostic plots to assess the quality of cell type assignments from single cell gene expression profiles. The implemented functionality allows to assess the reliability of cell type annotations, investigate gene expression patterns, and explore relationships between different cell types in query and reference datasets allowing users to detect potential misalignments between reference and query datasets. The package also provides visualization capabilities for diagnostics purposes.

Authors:Anthony Christidis [aut, cre], Andrew Ghazi [aut], Smriti Chawla [aut], Nitesh Turaga [ctb], Ludwig Geistlinger [aut], Robert Gentleman [aut]

scDiagnostics_1.7.2.tar.gz
scDiagnostics_1.7.2.zip(r-4.7)scDiagnostics_1.7.2.zip(r-4.6)scDiagnostics_1.7.2.zip(r-4.5)
scDiagnostics_1.7.2.tgz(r-4.6-any)scDiagnostics_1.7.2.tgz(r-4.5-any)
scDiagnostics_1.7.2.tar.gz(r-4.7-any)scDiagnostics_1.7.2.tar.gz(r-4.6-any)
scDiagnostics_1.7.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
scDiagnostics/json (API)

# Install 'scDiagnostics' in R:
install.packages('scDiagnostics', repos = c('https://bioc.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ccb-hms/scdiagnostics/issues

Pkgdown/docs site:https://ccb-hms.github.io

On BioConductor:scDiagnostics-1.7.0(bioc 3.24)scDiagnostics-1.6.0(bioc 3.23)

annotationclassificationclusteringgeneexpressionrnaseqsinglecellsoftwaretranscriptomics

8.20 score 12 stars 74 scripts 255 downloads 33 exports 81 dependencies

Last updated from:7e9343ca78. Checks:8 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksWARNING323
linux-devel-x86_64WARNING831
source / vignettesOK508
linux-release-x86_64WARNING715
macos-release-arm64WARNING432
macos-oldrel-arm64WARNING517
windows-develWARNING1756
windows-releaseWARNING1660
windows-oldrelWARNING1765
wasm-releaseOK273

Exports:boxplotPCAcalculateAveragePairwiseCorrelationcalculateCategorizationEntropycalculateCellDistancescalculateCellDistancesSimilaritycalculateCellSimilarityPCAcalculateCramerPValuecalculateDiscriminantSpacecalculateGeneShiftscalculateGraphIntegrationcalculateHotellingPValuecalculateHVGOverlapcalculateMMDPValuecalculateReconstructionErrorcalculateSIRSpacecalculateVarImpOverlapcalculateWassersteinDistancecompareMarkerscomparePCAcomparePCASubspacedetectAnomalyhistQCvsAnnotationplotCellTypeMDSplotCellTypePCAplotGeneExpressionDimredplotGeneSetScoresplotMarkerExpressionplotPairwiseDistancesDensityplotQCvsAnnotationprocessPCAprojectPCAprojectSIRregressPC

Dependencies:abindassortheadbeachmatBHBiobaseBiocGenericsBiocNeighborsBiocParallelblusterbootcliclustercodetoolscpp11cramercrayondata.tableDelayedArraydplyrfarverFNNforcatsformatRfutile.loggerfutile.optionsgenericsGenomicRangesGGallyggplot2ggridgesggstatsgluegtablehmsigraphIRangesisobandisotreejsonlitelabelinglambda.rlatticelifecyclemagrittrMASSMatrixMatrixGenericsmatrixStatspatchworkpillarpkgconfigprettyunitsprogresspurrrR6rangerRColorBrewerRcppRcppEigenRhpcBLASctlrlangS4ArraysS4VectorsS7scalesSeqinfoSingleCellExperimentsnowSparseArraystringistringrSummarizedExperimenttibbletidyrtidyselecttransportutf8vctrsviridisLitewithrXVector

Getting Started with scDiagnostics
Purpose | Installation | Installation from Bioconductor (Release) | Installation from GitHub (Development) | Preliminaries | Loading Datasets | Subsetting the Datasets | Visualization of Cell Type Annotations | Visualization of Cell Type Annotations in Reduced Dimensions | plotCellTypePCA() | calculateDiscriminantSpace() | Visualization of Marker Expressions | Visualization of QC and Annotation Scores | Evaluation of Dataset and Marker Gene Alignment | comparePCASubspace() | plotPairwiseDistancesDensity() | calculateWassersteinDistance() | calculateVarImpOverlap() | calculateAveragePairwiseCorrelation() | Detection and Analysis of Annotation Anomalies | Detection of Annotation Anomalies | Analysis of Annotation Anomalies | R Session Info

Last update: 2026-06-21
Started: 2023-08-04

Evaluation of Dataset and Marker Gene Alignment
Introduction | Functions for Evaluation of Dataset Alignment | Statistical Measures to Assess Dataset Alignment | Marker Gene Alignment | Purpose and Applications | Preliminaries | Evaluation of Dataset Alignment | comparePCA() | comparePCASubspace() | plotPairwiseDistancesDensity() | Purpose | Functionality | Interpretation | calculateWassersteinDistance() | Code Example | calculateCramerPValue() | calculateHotellingPValue() | calculateAveragePairwiseCorrelation() | regressPC() | Query-only with Batch Information | Query + Reference with Batch Information | Diagnostic Value | calculateHVGOverlap() | How the Function Operates | calculateVarImpOverlap() | Overview | Usage | Interpretation: | R Session Info

Last update: 2025-10-27
Started: 2024-08-27

Visualization of Cell Type Annotations
Introduction | Preliminaries | Visualization of Query vs. Reference Dataset | Plot Reference and Query Cell Types Using MDS | Plot Principal Components for Different Cell Types | Plot Principal Components as Boxplots | Project Query Data onto Discriminant Space of Reference Data | Function Details | Example Application | Using Mahalanobis Distance for Anomaly Detection in Single-Cell RNA-Seq Data | Project Data onto Sliced Inverse Regression (SIR) Space of Reference Data | Visualization of Marker Expressions | Visualizing Gene Expression in Reduced Dimensions | Plotting Gene Expression Distribution | Visualization of QC and Annotation Scores | Scatter Plot: QC Stats vs Cell Type Annotation Scores | Histograms: QC Stats and Annotation Scores Visualization | Visualization of Gene Sets or Pathway Scores on Dimensional Reduction Plots | R Session Info

Last update: 2025-10-03
Started: 2024-08-27

Detection and Analysis of Annotation Anomalies
Introduction | Preliminaries | The detectAnomaly() Function | Function Overview | Description | Parameters | Return Value | detectAnomaly() Examples | Anomaly Detection with Reference and Query Data | Example 1: Cell-Type Specific Anomaly Detection | Example 2: Global Anomaly Detection | Anomaly Detection on Reference Data | Integrating Anomaly Detection with Cell Similarity Analysis Using PCA Loadings | Analyzing Cell Distances | calculateCellDistances() | Function Usage | Output | Example Workflow | calculateCellDistancesSimilarity() | R Session Info

Last update: 2025-09-22
Started: 2024-08-27

Readme and manuals

Help Manual

Help pageTopics
Plot Principal Components for Different Cell TypesboxplotPCA
Calculate Categorization EntropycalculateCategorizationEntropy
Function to Calculate Bhattacharyya Coefficients and Hellinger DistancescalculateCellDistancesSimilarity
Calculate Cramer Test P-Values for Two-Sample Comparison of Multivariate ECDFscalculateCramerPValue
Project Query Data onto a Unified Discriminant Space of Reference DatacalculateDiscriminantSpace plot.calculateDiscriminantSpaceObject
Calculate Top Loading Gene Expression ShiftscalculateGeneShifts plot.calculateGeneShiftsObject
Calculate Graph Community Integration DiagnosticscalculateGraphIntegration plot.calculateGraphIntegrationObject
Perform Hotelling's T-squared Test on PCA Scores for Single-cell RNA-seq DatacalculateHotellingPValue
Calculate the Overlap Coefficient for Highly Variable GenescalculateHVGOverlap
Calculate Maximum Mean Discrepancy P-Values for Two-Sample ComparisoncalculateMMDPValue
Calculate PCA Reconstruction Errors for Out-of-Distribution Anomaly DetectioncalculateReconstructionError plot.calculateReconstructionErrorObject
Calculate Sliced Inverse Regression (SIR) Space for Different Cell TypescalculateSIRSpace plot.calculateSIRSpaceObject
Compare Gene Importance Across Datasets Using Random ForestcalculateVarImpOverlap
Compare Principal Components Analysis (PCA) ResultscomparePCA plot.comparePCAObject
PCA Anomaly Scores via Isolation Forests with VisualizationdetectAnomaly plot.detectAnomalyObject
Histograms: QC Stats and Annotation Scores VisualizationhistQCvsAnnotation
Plot Regression Results on Principal Componentsplot.regressPCObject regressPC
Plot Reference and Query Cell Types using MDSplotCellTypeMDS
Plot Principal Components for Different Cell TypesplotCellTypePCA
Visualize gene expression on a dimensional reduction plotplotGeneExpressionDimred
Visualization of gene sets or pathway scores on dimensional reduction plotplotGeneSetScores
Plot gene expression distribution from overall and cell type-specific perspectiveplotMarkerExpression
Ridgeline Plot of Pairwise Distance AnalysisplotPairwiseDistancesDensity
Scatter plot: QC stats vs Cell Type Annotation ScoresplotQCvsAnnotation
Process PCA for SingleCellExperiment ObjectsprocessPCA
Project Query Data Onto PCA Space of Reference DataprojectPCA
Project Query Data Onto SIR Space of Reference DataprojectSIR