Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Score cell-cycle activity

Single-cell RNA sequencing captures a snapshot of expression. Genes associated with DNA replication (S phase) and preparation for division (G2/M) can help identify cycling cells. These programs may separate cells of the same type into different clusters, or reflect proliferation that is central to the study.

CyteArc compares the expression of S and G2M marker genes with control genes of similar average expression, then assigns a phase from the two scores. These are relative expression scores, not measurements of division rate. In particular, a G1 assignment does not distinguish cycling G1 cells from cells outside the cycle.

Open the prepared analysis

We use the embryonic mouse pancreas data from Bastidas-Ponce et al., 2019. The saved analysis provides the selected cells and UMAP for inspecting the scores.

DataStore has 3696 (3696) cells with 1 assays: RNA Cell metadata: 'I', 'ids', 'names', 'G2M_score', 'RNA_UMAP1', 'RNA_UMAP2', 'RNA_clusters', 'RNA_leiden_cluster', 'RNA_nCounts', 'RNA_nFeatures', 'RNA_percentMito', 'RNA_percentRibo', 'S_score', 'clusters', 'clusters_coarse' RNA assay has 27998 features and following metadata: 'I', 'ids', 'names', 'dropOuts', 'highly_variable_genes', 'nCells'

Started: 2026-10-11T18:54:41.518086Z | Wall time: 9.689 s

UMAP of embryonic mouse pancreas cells colored by the 12 clusters in the saved analysis, before cell-cycle scoring.

Started: 2026-10-11T18:54:51.210163Z | Wall time: 0.704 s

Run cell-cycle scoring

For each phase, CyteArc:

  • Matches S and G2M markers to the assay’s gene names, using its bundled lists by default.

  • Groups genes by their mean log-normalized expression across the selected cells.

  • Samples control genes from the expression bins containing that phase’s markers.

  • Subtracts the mean control expression from the mean marker expression in each cell.

Cells with both scores below zero are assigned G1. Otherwise, G2M is assigned when its score exceeds the S score; the remaining cells, including ties, are assigned S.

WARNING: 2 of 54 g2m_genes were not found in the assay feature names
S scoreG2M scorephase
0-0.024501-0.040976G1
10.020201-0.035924S
2-0.001931-0.044457G1
30.1046090.018123S
4-0.006316-0.035153G1

Started: 2026-10-11T18:54:51.917837Z | Wall time: 1.809 s

The saved output warns that two bundled G2M markers are absent from this assay. Scoring uses the remaining matches. Check marker coverage when applying the scorer to another dataset.

Visualize cell-cycle phases

Pass the result to the UMAP plot to color cells by their assigned phase.

Mouse pancreas UMAP colored by assigned G1, S, and G2M phases. S and G2M assignments concentrate in parts of the right-hand branch.

Started: 2026-10-11T18:54:53.732129Z | Wall time: 0.406 s

Look for populations enriched for S or G2M. The table below reports phase fractions within each cluster, so rows sum to one. It shows where the expression programs are concentrated; it does not measure how quickly those populations divide.

col_0G1G2MS
row_0
10.9126980.0000000.087302
20.4139190.0164840.569597
30.9330630.0000000.066937
40.0697670.0651160.865116
50.0000000.9551570.044843
60.8235290.0058820.170588
70.9268290.0000000.073171
80.0000000.1103450.889655
90.9569890.0000000.043011
100.9480000.0000000.052000
110.4888890.0063490.504762
120.5102880.0411520.448560

Started: 2026-10-11T18:54:54.140825Z | Wall time: 0.041 s

Plot both continuous scores as well as the assigned phase. Cells near a phase boundary can have similar scores even when the categorical labels differ.

Paired pancreas UMAPs show continuous S and G2M scores. Higher scores concentrate in parts of the lower-right branch, with separate color scales for the two scores.

Started: 2026-10-11T18:54:54.184866Z | Wall time: 0.489 s

Common mistakes and limitations

  • Scoring against names the bundled lists cannot match: matching is case-insensitive on human and mouse gene symbols, so Ensembl IDs need a corresponding marker list or a gene-symbol mapping. Missing markers warn and scoring continues on the remaining matches; a phase with no matches raises an error, and a small matched set may not represent the whole program.

  • Comparing scores across runs or datasets: control genes are sampled from the selected cells’ expression bins, so scores are comparable only within one scoring result, and low counts can weaken the measured signal.

  • Reading the phase labels as observations: the assignment is a rule over two relative scores, so inspect several phase markers and the continuous scores near phase boundaries before interpreting proliferation.