Package: cytoGateR 0.99.1

Lijia Yu

cytoGateR: Marker-Aware Cell Type Annotation for Protein Imaging Data

Provides marker-aware gating and classification methods for cell type annotation in spatial protein imaging data. The package constructs interpretable cell-type gating hierarchies, quantifies annotation uncertainty, and supports supervised prediction of cells that cannot be confidently gated. It operates on SummarizedExperiment and SpatialExperiment objects to support interoperable analysis of single-cell spatial proteomics data.

Authors:Matthew Li [aut], Nikhil Karthik [aut], Harry Robertson [aut], Jean Yang [aut], Lijia Yu [aut, cre]

cytoGateR_0.99.1.tar.gz
cytoGateR_0.99.1.zip(r-4.7-any)cytoGateR_0.99.1.zip(r-4.6-any)cytoGateR_0.99.1.zip(r-4.5-any)
cytoGateR_0.99.1.tgz(r-4.6-any)cytoGateR_0.99.1.tgz(r-4.5-any)
cytoGateR_0.99.1.tar.gz(r-4.7-any)cytoGateR_0.99.1.tar.gz(r-4.6-any)
cytoGateR_0.99.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cytoGateR/json (API)

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

Bug tracker:https://github.com/sydneybiox/cytogater/issues

Pkgdown/docs site:https://sydneybiox.github.io

Datasets:

On CRAN:

Conda:

cellbasedassaysclassificationimmunooncologysinglecellspatialquarto

4.58 score 6 scripts 55 exports 102 dependencies

Last updated from:776b880ba7. Checks:1 NOTE, 9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksNOTE225
linux-develOK335
source / vignettesOK321
linux-releaseOK316
macos-releaseOK361
macos-oldrelOK322
windows-develOK1455
windows-releaseOK1073
windows-oldrelOK1410
wasm-releaseOK169

Exports:apply_cutoff_labelsassign_confident_labelsassign_soft_labelsbuild_fullcoverage_treebuild_hierarchical_referencebuild_lineage_hierarchycalculate_f1calculate_soft_scorescalculate_spatial_prior_labelscalculate_uncertaintyclass_metrics_from_fitcollect_path_scorescompute_custom_labelscustom_labelsfit_gmm_2fit_marker_statslabel_agreement_rateslabel_confusion_matrixmarker_separabilityneg_penaltyplot_celltype_treeplot_class_metricsplot_confusion_matrixplot_ct_marker_intensityplot_label_agreementplot_label_cardinalityplot_label_confusion_matrixplot_label_countsplot_label_dotplotplot_labelled_cellsplot_marker_densityplot_marker_priority_treeplot_probability_mapplot_pseudobulk_heatmapplot_rand_cell_probsplot_score_histpredict_hierarchical_knn_recursivepredict_unknown_with_dlpredict_unknown_with_knnpredict_unknown_with_randomforestprint_celltype_treeprob_mad_cutoffprob_quantile_cutoffprobability_label_matrixrf_metric_tablerf_metric_textrun_soft_gatingrun_tree_gatingscore_marker_logisticscore_marker_ranktrain_custom_dltrain_custom_knntrain_custom_randomforesttree_probtree_to_df

Dependencies:abindaskpassbase64encBHBiobaseBiocFileCacheBiocGenericsBiocParallelbitbit64blobcachemclicodetoolscolorspacecpp11curlDBIdbplyrdbscanDelayedArraydichromatdplyrfarverfastmapfilelockformatRfutile.loggerfutile.optionsgenericsGenomicRangesggforceggplot2ggraphggrepelgluegraphlayoutsgridExtragtablehttr2igraphIRangesisobandjpegjsonlitelabelinglambda.rlatticelifecyclemagickmagrittrmapprojmapsmarqueeMASSMatrixMatrixGenericsmatrixStatsmclustmemoiseopensslpalspillarpkgconfigpngpolyclipproxypurrrR6rangerRColorBrewerRcppRcppEigenrjsonrlangRSQLiteS4ArraysS4VectorsS7scalesSeqinfoSingleCellExperimentsnowSparseArraySpatialExperimentstringistringrSummarizedExperimentsyssystemfontstextshapingtibbletidygraphtidyrtidyselecttweenrutf8vctrsviridisviridisLitewithrXVector

Introduction to cytoGateR
Introduction | Installation | Example data | Stored annotation outputs | Session information

Last update: 2026-12-04
Started: 2026-07-25

Tree Gating and Visualisation
Overview | Define a lineage table | Fit tree-gating models | Inspect the fitted trees | Select high-confidence cells | Visualise expression and annotations | Visualise stored full-workflow probabilities | Session information

Last update: 2026-12-04
Started: 2026-07-25

Machine-Learning Prediction
Overview | Train a weighted kNN reference | Predict unassigned cells | Assemble the full probability matrix | Quantify uncertainty | Compare labels | Other classifiers | Session information

Last update: 2026-12-04
Started: 2026-07-25

Hierarchical kNN Classification
Overview | Prepare reference labels | Build the lineage hierarchy | Build node-specific references | Run recursive hierarchical kNN | Inspect hierarchical predictions | Production settings | Session information

Last update: 2026-12-04
Started: 2026-07-25

Readme and manuals

Help Manual

Help pageTopics
Apply cutoff-based labels to a result listapply_cutoff_labels
Assign labels with uncertainty handlingassign_confident_labels
Assign hard labels from probability matrixassign_soft_labels
Build full-coverage gating treebuild_fullcoverage_tree
Build Hierarchical Reference with Flexible Marker Selectionbuild_hierarchical_reference
Build Lineage Hierarchy from Core Cellsbuild_lineage_hierarchy
Calculate F1 Score per Cell Typecalculate_f1
Calculate soft gating probabilities per cell typecalculate_soft_scores
Apply Protected Spatial Priors to kNN Probabilitiescalculate_spatial_prior_labels
Calculate Full Uncertainty Suite with Sample Groupingcalculate_uncertainty
Derive per-class metrics from a fitted modelclass_metrics_from_fit
Collect scores along a tree pathcollect_path_scores
Flag confident cells from a probability matrixcompute_custom_labels
Add custom labels to a SpatialExperimentcustom_labels
Minimal spatial proteomics examplecytoGateR_example
Fit a 2-component Gaussian mixture modelfit_gmm_2
Fit per-marker 2-GMM statistics for soft gatingfit_marker_stats
Compute the cutoff where posteriors are equalgmm_equal_posterior_cutoff
Agreement rates between two label columnslabel_agreement_rates
Confusion matrix between two label columnslabel_confusion_matrix
Marker separabilitymarker_separability
Negative marker penaltyneg_penalty
Plot a cell-type gating treeplot_celltype_tree
Plot per-class precision, recall, and F1plot_class_metrics
Plot a confusion matrix heatmapplot_confusion_matrix
Plot marker intensity with optional GMM fitplot_ct_marker_intensity
Plot agreement between two label columnsplot_label_agreement
Barplot of positive label counts per cellplot_label_cardinality
Plot confusion matrix between two label columnsplot_label_confusion_matrix
Plot counts of a label columnplot_label_counts
Plot label comparison dotplotplot_label_dotplot
Plots the spatial arrangement of classified cellsplot_labelled_cells
Plot marker density across imagesplot_marker_density
Plot a marker priority "tree" for a given cell type (weights order)plot_marker_priority_tree
Plot spatial probability map for a cell typeplot_probability_map
Plot pseudobulk marker heatmapplot_pseudobulk_heatmap
Plot the cell type probabilities of a random sample of cellsplot_rand_cell_probs
Plot cell-type probability histogramsplot_score_hist
Recursive Hierarchical kNN with BiocParallel Ensemblepredict_hierarchical_knn_recursive
Predict unknown cells using a trained deep-learning modelpredict_unknown_with_dl
Predict and fill unknown labels using a weighted kNN modelpredict_unknown_with_knn
Predict and fill unknown labels using a trained random forest modelpredict_unknown_with_randomforest
Multi-Metric Weighted kNNpredict_wknn_multi
Print a cell-type gating treeprint_celltype_tree
Median + MAD cutoff helperprob_mad_cutoff
Default quantile-based cutoffprob_quantile_cutoff
Build a binary label matrix from probabilitiesprobability_label_matrix
Tabular and text summaries of RF performancerf_metric_table
Text summary of random forest performancerf_metric_text
Run soft-gating pipeline end-to-endrun_soft_gating
Run tree-based soft gating on a SpatialExperimentrun_tree_gating
Logistic marker scorescore_marker_logistic
Rank based marker scorescore_marker_rank
Train a custom deep-learning classifier with consensus label cleaningtrain_custom_dl
Train kNN Reference for Cell Type Predictiontrain_custom_knn
Train a custom random forest with consensus label cleaningtrain_custom_randomforest
Tree probability for one celltree_prob
Convert a tree to a tibble representationtree_to_df