Package: scGate 1.7.2

scGate: Marker-Based Cell Type Purification for Single-Cell Sequencing Data

A common bioinformatics task in single-cell data analysis is to purify a cell type or cell population of interest from heterogeneous datasets. 'scGate' automatizes marker-based purification of specific cell populations, without requiring training data or reference gene expression profiles. Briefly, 'scGate' takes as input: i) a gene expression matrix stored in a 'Seurat' object and ii) a “gating model” (GM), consisting of a set of marker genes that define the cell population of interest. The GM can be as simple as a single marker gene, or a combination of positive and negative markers. More complex GMs can be constructed in a hierarchical fashion, akin to gating strategies employed in flow cytometry. 'scGate' evaluates the strength of signature marker expression in each cell using the rank-based method 'UCell', and then performs k-nearest neighbor (kNN) smoothing by calculating the mean 'UCell' score across neighboring cells. kNN-smoothing aims at compensating for the large degree of sparsity in scRNA-seq data. Finally, a universal threshold over kNN-smoothed signature scores is applied in binary decision trees generated from the user-provided gating model, to annotate cells as either “pure” or “impure”, with respect to the cell population of interest. See the related publication Andreatta et al. (2022) <doi:10.1093/bioinformatics/btac141>.

Authors:Zaoqu Liu [aut, cre], Massimo Andreatta [aut], Ariel Berenstein [aut], Josep Garnica [aut], Santiago Carmona [aut]

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

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

Bug tracker:https://github.com/zaoqu-liu/scgate/issues

Pkgdown/docs site:https://zaoqu-liu.github.io

Datasets:

On CRAN:

Conda:

5.09 score 1 packages 204 scripts 553 downloads 11 exports 160 dependencies

Last updated from:464ffc9b42 (on main). Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK279
source / vignettesOK289
linux-release-x86_64OK262
macos-release-arm64OK128
macos-oldrel-arm64OK140
windows-develOK229
windows-releaseOK209
windows-oldrelOK226
wasm-releaseOK215

Exports:combine_scGate_multiclassgating_modelget_scGateDBget_testing_dataload_scGate_modelperformance.metricsplot_levelsplot_treeplot_UCell_scoresscGatetest_my_model

Dependencies:abindaskpassassortheadbase64encbeachmatBHBiocGenericsBiocNeighborsBiocParallelbitopsbslibcachemcaToolscliclustercodetoolscolorspacecommonmarkcowplotcpp11crosstalkcurldata.tableDelayedArraydeldirdigestdotCall64dplyrdqrngevaluatefarverfastDummiesfastmapfitdistrplusFNNfontawesomeformatRfsfutile.loggerfutile.optionsfuturefuture.applygenericsggplot2ggrepelggridgesglobalsgluegoftestgplotsgridExtragtablegtoolsherehighrhtmltoolshtmlwidgetshttpuvhttricaigraphIRangesirlbaisobandjquerylibjsonliteKernSmoothknitrlabelinglambda.rlaterlatticelazyevallifecyclelistenvlmtestmagrittrMASSMatrixMatrixGenericsmatrixStatsmemoisemimeminiUInlmeopensslotelparallellypatchworkpbapplypillarpkgconfigplotlyplyrpngpolyclipprogressrpromisespurrrR6RANNrappdirsRColorBrewerRcppRcppAnnoyRcppArmadilloRcppEigenRcppHNSWRcppProgressRcppTOMLreshape2reticulaterlangrmarkdownROCRrprojrootRSpectraRtsneS4ArraysS4VectorsS7sassscalesscattermoresctransformSeuratSeuratObjectshinysitmosnowsourcetoolsspspamSparseArrayspatstat.dataspatstat.explorespatstat.geomspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstringistringrsurvivalsystensortibbletidyrtidyselecttinytexutf8uwotvctrsviridisLitewithrxfunxtableXVectoryamlzoo

Advanced Usage and Best Practices
Introduction | Building Hierarchical Models | Multi-Level Gating Strategy | Model Conversion Utilities | Multi-Class Classification | Annotating Multiple Cell Types | Visualizing Multi-Class Results | Working with Integrated Data | Using Pre-computed Reductions | Assay Selection | Parameter Optimization | Key Parameters | Threshold Tuning | Performance Evaluation | Using Ground Truth | Interpreting Metrics | Parallel Processing | Multi-core Processing | Gene Blacklisting | Default Blacklist | Custom Blacklist | Troubleshooting | Common Issues | Diagnostic Checks | Best Practices Summary | Session Info

Last update: 2026-01-23
Started: 2026-01-23

Algorithm and Mathematical Framework
Overview | Algorithm Pipeline | Step 1: Signature Scoring with UCell | Mathematical Formulation | Key Properties | Step 2: kNN Smoothing | Effect of Smoothing | Step 3: Hierarchical Decision Trees | Gating Logic | Parameter Decay | Performance Metrics | Matthews Correlation Coefficient (MCC) | Numerical Stability | Computational Considerations | Vectorized Operations | Parallel Processing | Summary | References | Session Info

Last update: 2026-01-23
Started: 2026-01-23

Quick Start Guide
Introduction | Key Features | Installation | Quick Example | Load Required Packages | Load Example Data | Create a Simple Gating Model | Apply scGate | Visualize Results | Building More Complex Models | Positive and Negative Markers | Using Pre-defined Models | Multi-class Classification | Key Parameters | Session Info

Last update: 2026-01-23
Started: 2026-01-23

Visualization Guide
Introduction | Preparing Example Data | Basic Visualizations | Gating Results on UMAP | Signature Score Visualization | Level-by-Level Visualization | Using plot_levels() | Custom Level Visualization | Score Distribution Analysis | Violin Plots | Density Plots by Cell Type | UCell Score Ridge Plots | Using plot_UCell_scores() | Confusion Matrix Visualization | Creating a Confusion Matrix | Publication-Ready Figures | Combined Summary Figure | Color Palettes | Recommended Color Schemes | Exporting Figures | High-Resolution Export | Tips for Effective Visualization | Session Info

Last update: 2026-01-23
Started: 2026-01-23