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.

Regulons, gene programs, and chromatin activity

Find the transcription factors that are active in each population of the 10x Genomics multiome sample pbmc_granulocyte_sorted_3k: 2,711 human peripheral blood mononuclear cells (PBMCs), with RNA and ATAC measured in the same cells. From RNA, the analysis infers SCENIC regulons, and the most specific of them include known lineage regulators of B cells, T cells, NK cells and monocytes. Without any factor list, the analysis also groups most of the variable genes into co-regulated gene programs; the T-cell program shares genes with the regulon of a T-cell factor, and its own genes are enriched for a motif annotated to the same factor. From ATAC, chromVAR finds the motifs of lineage regulators most accessible in their own lineages, and the sites where SPI1 (PU.1) is bound in monocytes separate myeloid cells from lymphocytes more sharply than the SPI1 motif does.

A regulon is a transcription factor together with the genes it is predicted to regulate. SCENIC finds regulons in RNA data in two steps Aibar et al., 2017: genes whose expression follows a factor’s expression become candidate targets, and motif enrichment near those genes keeps the targets that the factor can plausibly bind. Chromatin accessibility adds evidence that does not rest on expression: when the peaks that hold a factor’s motif, or the peaks where a CUT&RUN experiment found the factor bound, are more accessible in some cells than those cells’ sequencing depth predicts, the factor is likely active there Schep et al., 2017.

Download the data and reference files

The page reads seven public files: the 10x Genomics matrix (CC BY 4.0); the human transcription factor list, a cisTarget motif-ranking database and its motif-to-factor table from the Aerts lab; the JASPAR 2024 vertebrate motifs (CC BY 4.0); the GENCODE release 32 genome; and SPI1 CUT&RUN peaks from ChIP-Atlas. ChIP-Atlas (c) Shinya Oki (Kyoto University) licensed under CC Attribution-Share Alike 4.0 International. The cisTarget v10 motif collection includes motifs derived from TRANSFAC Professional, a commercial database, so check its terms before commercial use. For another dataset, choose a cisTarget database of the same species and gene names, and the genome build that the dataset’s peaks were called against.

Reading the cisTarget database needs the regulons extra: pip install "cytearc[extra,regulons]". The seven downloads take 1.29 GB and the decompressed genome another 3.15 GB, in a regulon_inputs folder that later runs reuse.

7 downloads take 1.29 GB, and the decompressed genome 3.15 GB

Started: 2026-11-28T18:58:12.369325Z | Wall time: 702.233 s

Build the store and name the populations

CrToZarr writes the 10x matrix into a CyteArc store, a folder of Zarr arrays that holds the RNA and ATAC peak counts as two assays over the same cells. The RNA recipe, ds.pipeline.rna, then removes outlier cells by their RNA quality metrics, selects highly variable genes, builds the neighbor graph and UMAP, and clusters the cells with Leiden. The recipe returns a pipeline run whose outputs the rest of the page reuses: run["analysis_cell_selection"] is a frozen cell selection, the saved and unchangeable list of the cells that the run analyzed, and run["umap"] is their layout.

2,612 of 2,711 cells pass the RNA run's quality control
DataStore has 2711 (2711) cells with 2 assays: ATAC RNA Cell metadata: 'I', 'ids', 'names', 'ATAC_nCounts', 'ATAC_nFeatures', 'RNA_nCounts', 'RNA_nFeatures', 'RNA_percentMito', 'RNA_percentRibo', 'sourceRow' ATAC assay has 98319 features and following metadata: 'I', 'ids', 'names', 'dropOuts', 'feature_type', 'genome', 'interval', 'nCells' RNA assay has 36601 features and following metadata: 'I', 'ids', 'names', 'dropOuts', 'feature_type', 'genome', 'interval', 'nCells'

Started: 2026-11-28T19:09:54.610922Z | Wall time: 109.267 s

The output above counts the cells that pass quality control and the genes and ATAC peaks of the store.

Name each cluster after the marker panel it expresses most strongly: each gene is scaled across clusters, and each cluster takes the panel whose genes have the highest mean scaled expression. The names go into a population cell column, so that the results below read as populations rather than cluster numbers. Cell type annotation shows how to check names like these against marker evidence.

clusterscells
CD14 monocyte1, 7733
CD16 monocyte8121
Dendritic cell1052
Plasmacytoid DC1129
B cell5192
CD4 T cell2, 3849
CD8 T cell4, 6534
NK cell9102

Started: 2026-11-28T19:11:43.880184Z | Wall time: 0.478 s

The table maps each cluster to a population and counts the cells of each population, among them plasmacytoid dendritic cells (DCs).

Infer regulons from RNA

GRNBoost2 asks, for every gene, how well each transcription factor’s expression predicts the gene’s expression, using gradient-boosted trees on raw counts Moerman et al., 2018. ds.regulons.grn runs GRNBoost2 with the settings of pySCENIC Sande et al., 2020 and saves the network as an artifact, a stored result that records the inputs and parameters it came from. GRNBoost2 fits a boosted-tree model for every gene, so its run time grows with both the cells and the genes. This page fits the network on 500 sampled cells, the highly variable genes, and every listed transcription factor detected in at least 1% of the analyzed cells. A full analysis fits all expressed genes on all cells, or on a representative sample of a large dataset, and fits again with a second random_seed to keep the regulons and targets that recur, because GRNBoost2 is stochastic. The methods page measures how much the links change between seeds.

1,212 factors, 2,138 target genes, 387,579 links
TFtargetimportancecorrelation
0PAX5EBF195.830.71
1PAX5BANK182.930.67
2EBF1BANK173.640.78
3PAX5RALGPS273.400.69
4EBF1PAX567.410.71

Started: 2026-11-28T19:11:44.360199Z | Wall time: 54.977 s

GRNBoost2 scores links from factors to target genes, and the output above counts them. Each row of the table is a link: importance measures how much the factor’s expression helps predict the target, and correlation gives the direction. The table lists the strongest links.

pySCENIC turns each factor’s strongest activating links into several candidate modules, then keeps only the module genes that a motif annotated to that factor ranks highly. For each motif, the cisTarget database ranks every gene by the motif’s best match in the region from 10 kb upstream of the gene’s transcription start site to 10 kb past the gene’s end. The genes that remain form the factor’s regulon, named FACTOR(+) for an activating factor.

4,574 modules of 1,212 factors leave 188 regulons with 15 genes at the median
sourceKLF4(+)KLF6(+)NR3C1(+)BACH1(+)CHD1(+)RXRA(+)KLF2(+)FOXO3(+)ELF1(+)BCL6(+)
genes20420119517314813911511410696

Started: 2026-11-28T19:12:39.339692Z | Wall time: 11.765 s

Motif pruning turns the candidate modules into regulons for a subset of the factors, and the output above counts them and lists the largest.

AUCell scores each regulon in each analyzed cell by how many of its genes rank among the cell’s most strongly expressed genes Aibar et al., 2017. The regulon specificity score (RSS) then measures how concentrated a regulon’s activity is in a population, and reaches 1 when the regulon is active only, and evenly, in that population.

AUCell scored 126 of the 188 regulons
most specific regulons (RSS)
group
CD14 monocyteFOS(+) 0.60, NFIC(+) 0.59, BCL6(+) 0.58
CD16 monocyteTCF7L2(+) 0.30, CEBPB(+) 0.30, CEBPA(+) 0.28
Dendritic cellRUNX2(+) 0.24, CEBPG(+) 0.22, NFIC(+) 0.22
Plasmacytoid DCRUNX2(+) 0.28, ARID3A(+) 0.24, BCL11A(+) 0.23
B cellEBF1(+) 0.51, BCL11A(+) 0.38, ZNF543(+) 0.35
CD4 T cellETS1(+) 0.54, KLF12(+) 0.52, BACH2(+) 0.50
CD8 T cellEOMES(+) 0.44, MYBL1(+) 0.42, TBX21(+) 0.42
NK cellTBX21(+) 0.32, EOMES(+) 0.31, MYBL1(+) 0.29

Started: 2026-11-28T19:12:51.108831Z | Wall time: 8.493 s

Four UMAP panels of the analyzed PBMCs. The first is colored by population, with the T cells, the B cells and the myeloid cells in separate regions. The other three are colored by AUCell score, from 0 in dark purple to each regulon's maximum in yellow, for the most specific regulon of the CD14 monocytes, of the B cells and of the NK cells: each is highest across its own population, and the NK cells' regulon is also high in part of the CD8 T cells.

Started: 2026-11-28T19:12:59.603620Z | Wall time: 0.753 s

AUCell scores the regulons with at least ten genes. Several of the most specific regulons belong to known lineage regulators, which the table lists by population. Small populations score lower, because a regulon’s background activity in the many other cells outweighs its activity in a few cells: the most specific regulons of the dendritic cells and the plasmacytoid DCs have lower scores than those of the large populations. On the UMAP, the most specific regulon of the CD14 monocytes is active across them, that of the B cells in the B cells, and that of the NK cells in the NK cells and in part of the CD8 T cells.

Regulons that are active in the same cells may act together. The connection specificity index (CSI) of two regulons is the fraction of all regulons whose correlation with each of the two is more than a margin, 0.05 by default, below the two regulons’ correlation with each other. Clustering the CSI groups co-active regulons into regulon modules, as SCENIC analyses do.

regulonsmost connected regulonsmost active in
module
145RXRA(+), KLF4(+), KLF6(+), BACH1(+), FOXO3(+), BCL6(+)CD14 monocyte
238STAT6(+), ELK3(+), SREBF1(+), ARID3A(+), ZBTB37(+), BCLAF1(+)CD14 monocyte
325KLF12(+), CHURC1(+), MYBL1(+), EOMES(+), ZNF43(+), NFATC2(+)NK cell
410ZNF543(+), BCL11A(+), EBF1(+), RUNX2(+), ZSCAN30(+), IRF4(+)Plasmacytoid DC
58THRB(+), GABPB1(+), ZNF431(+), ATF1(+), HCFC1(+), TFAP4(+)B cell

Started: 2026-11-28T19:13:00.358307Z | Wall time: 0.171 s

The table gives each regulon module’s most active population and its most connected regulons, those with the highest mean CSI within the module. Some modules follow lineages: one joins the regulons of T-cell and NK-cell factors, and one joins those of plasmacytoid DC and B-cell factors. Other modules are most active in a population, such as the CD14 monocytes or the B cells, but most of their most connected regulons are not known regulators of that lineage.

Find co-regulated gene programs

A regulon starts from a known factor. A gene program starts from the genes: genes that rise and fall together across many groups of similar cells are likely regulated as a unit, whether or not the factor is known. Programs need no factor list or motif database, so they apply to any scRNA-seq dataset, including species without a cisTarget database.

Pool the analyzed cells into metacells, small groups of similar cells from a fine Leiden clustering, to average out the sampling noise of single cells; ds.regulons.profiles sums each metacell’s RNA counts as log counts per million. rg.gene_programs then links each highly variable gene to the genes it correlates with most across metacells and splits that gene graph into programs with Leiden.

118 metacells; 745 of 999 variable genes fall into 5 programs
sizeleading_genes
source
P1221ABLIM1, CAMK4, TC2N, LEF1, BCL11B, ZEB1, CD96, ITGA6
P2212RIN2, GLT1D1, CLEC7A, WDFY3, PLXDC2, SLC8A1, KLF4, SLC24A4
P3137LINC02397, COBLL1, CD19, FCRLA, FCRL5, VPREB3, IGHD, KLHL14
P4100PTGDR, PPP2R2B, PDGFD, CST7, HOPX, XCL2, JAKMIP2, KLRD1
P575MEF2C, SYK, TBC1D9, KYNU, WDFY4, LRRK2, IRF8, FAM49A

Started: 2026-11-28T19:13:00.531546Z | Wall time: 2.117 s

Across the metacells, most of the variable genes fall into programs, and the output above counts them; the remaining genes correlate too weakly with the rest of their program, or form groups too small to count as a program. Each program lists its genes by membership, the correlation of a gene with the mean profile of the program’s other genes, so the leading genes are the most typical. The leading genes suggest identities: T-cell, monocyte, B-cell, cytotoxic and antigen-presenting genes. The rest of the page calls the programs the T-cell, monocyte, B-cell, cytotoxic and antigen-presentation programs, and the next table confirms each name by the population where the program is most active. Score each program in every analyzed cell with AUCell, as for the regulons.

Heatmap of the mean AUCell score of the gene programs (columns) in eight PBMC populations (rows), myeloid populations at the top, on a scale from black at low scores to light yellow at high scores. The monocyte program is brightest in CD14 monocytes and also high in CD16 monocytes and dendritic cells, the T-cell program in CD4 and CD8 T cells, the B-cell program in B cells, the cytotoxic program in NK cells, and the antigen-presentation program across plasmacytoid DCs, B cells, monocytes, and dendritic cells.
P1P2P3P4P5
nameT-cellmonocyteB-cellcytotoxicantigen-presentation
most active inCD8 T cellCD14 monocyteB cellNK cellPlasmacytoid DC
mean AUCell0.20.420.220.250.31

Started: 2026-11-28T19:13:02.650715Z | Wall time: 0.671 s

Each program is most active in the population that its genes suggest: the monocyte program in CD14 monocytes, the B-cell program in B cells, and the cytotoxic program in NK cells. The T-cell program is active in both CD4 and CD8 T cells, and the antigen-presentation program spans the antigen-presenting cells: plasmacytoid DCs, B cells, monocytes, and dendritic cells.

The programs were found without any factor, so compare them with the regulons: a program that shares many genes with a regulon may be regulated by that regulon’s factor. A hypergeometric test asks whether each program shares more genes with each regulon than chance predicts, counting only the variable genes, and the table lists each program’s three most significant regulons at a Benjamini-Hochberg q-value below 0.05, with the number of shared genes.

overlapping regulons (shared genes)
query
P1ETS1(+) (53), BACH2(+) (38), PLAG1(+) (16)
P2KLF4(+) (79), BACH1(+) (69), KLF6(+) (65)
P3BCL11A(+) (13), THRB(+) (10)
P4TBX21(+) (29), EOMES(+) (7), NFATC2(+) (12)
P5KLF4(+) (24), SP3(+) (10), RXRA(+) (17)

Started: 2026-11-28T19:13:03.324046Z | Wall time: 0.049 s

The overlaps tie the programs to lineage factors: each lineage program shares genes with the regulon of a known lineage factor, and the table gives the pairs with their numbers of shared genes.

A second route needs no regulons: test each program’s own genes for motif enrichment with the cisTarget database that pruned the regulons, which rates each motif by a normalized enrichment score (NES). Large programs yield many weakly enriched motifs, and one motif can be annotated to several factors, so keep the factors whose own expression follows the program across metacells, with a Pearson correlation above 0.6.

programTFmotifNEScorrelation
0P1ETS1tfdimers__MD003643.340.91
1P1IKZF3metacluster_133.23.030.86
2P1KLF12metacluster_133.23.030.78
3P2KLF4tfdimers__MD005693.020.94
4P2NFE2tfdimers__MD005693.020.85
5P2RXRAtfdimers__MD005693.020.85
6P4GFI1tfdimers__MD002643.120.61
7P5PLAGL1metacluster_133.23.040.83
8P5KLF4tfdimers__MD002423.400.80
9P5SPI1metacluster_24.23.320.78

Started: 2026-11-28T19:13:03.374241Z | Wall time: 0.683 s

Most programs have an enriched motif whose factor’s expression follows the program, and the table shows the best correlated factors of each program. For the T-cell program the two routes agree: a factor that shares genes with the program is also nominated by a motif enriched in the program, and its expression follows the program across metacells. Some factors owe their motif evidence to one shared motif cluster, so only their expression tells these factors apart. For the antigen-presentation program the two routes put different factors first: the motifs nominate some factors, while the most significant shared genes point mostly to others. The B-cell program has no motif factor that passes the filter, and the cytotoxic program has only one, close to the filter, although both programs share genes with their lineage regulons. A factor that both routes nominate is a stronger candidate than one from either route alone, and binding data for that factor near the program’s genes can test the candidate.

Score motif accessibility in the same cells

chromVAR asks whether a cell has more ATAC fragments in the peaks that hold a motif than the cell’s sequencing depth and those peaks’ average accessibility predict Schep et al., 2017. chromVAR compares each motif’s peaks with background peaks of similar GC content and accessibility, and reports the difference as a z-score for each cell. First find the peaks that hold each motif and assign them to the factor that the motif is named after; a factor’s set of peaks is its cistrome. To keep the page short, scan the first JASPAR motif of each of 18 factors: immune regulators and the ubiquitous insulator protein CTCF. Scan the whole collection to look for new factors.

18 motifs scanned over 98,316 peaks
sourceSPI1KLF4CTCFMEF2CEBF1RUNX3IRF8CEBPAPOU2F2EOMESNFKB1IRF4TCF7GATA3TBX21LEF1CEBPBPAX5
peaks with a match4315531982285072635317695137271280612461123951142711343111621066498688928881932933108

Started: 2026-11-28T19:13:04.059684Z | Wall time: 18.028 s

Heatmap of the mean chromVAR z-scores of the motif peaks of 18 factors (columns, in alphabetical order) in eight PBMC populations (rows), from -5 in blue to 5 in red; values outside that range take the end colors. CEBPA and CEBPB are red in monocytes and blue in lymphocytes and plasmacytoid DCs. SPI1 is red in monocytes, dendritic cells, and plasmacytoid DCs, and blue in T and NK cells. POU2F2 is red in B cells, IRF4 and IRF8 are red in B cells and plasmacytoid DCs, and TBX21 and EOMES are red in NK cells. CTCF is blue in monocytes and dendritic cells and light red in T cells, where TCF7 and LEF1 are also light red. KLF4 and PAX5 stay near zero in every population.
most accessible motifs (mean z-score)
CD14 monocyteCEBPA 8.0, CEBPB 5.1, SPI1 4.4
CD16 monocyteSPI1 5.7, CEBPA 5.3, CEBPB 3.5
Dendritic cellSPI1 7.6, CEBPA 2.8, CEBPB 1.6
Plasmacytoid DCSPI1 4.0, IRF8 2.4, IRF4 2.2
B cellPOU2F2 4.0, IRF4 2.5, IRF8 2.3
CD4 T cellCTCF 2.0, TCF7 1.6, LEF1 1.4
CD8 T cellCTCF 1.6, RUNX3 1.3, TCF7 1.2
NK cellTBX21 3.5, EOMES 3.2, RUNX3 1.4

Started: 2026-11-28T19:13:22.090576Z | Wall time: 19.593 s

Outside the T cells, each population’s most accessible motifs belong to regulators of its lineage. The CEBPA and CEBPB motifs are most accessible in monocytes, and the most specific regulons of the CD16 monocytes include CEBPA and CEBPB. SPI1 is most accessible in the myeloid populations and plasmacytoid DCs, POU2F2 in B cells, IRF4 and IRF8 in B cells and plasmacytoid DCs, and TBX21 and EOMES in NK cells, where the TBX21 and EOMES regulons are also among the most specific. In T cells no motif stands out: the most accessible, among them the ubiquitous CTCF, have low scores. Related factors share motifs, so each column measures a motif family rather than one factor. A motif can also miss its factor: the PAX5 motif stays near zero in B cells, the EBF1 motif is only weakly positive there although the EBF1 regulon is among the most specific of B cells, and the KLF4 motif stays near zero in every population although the KLF4 regulon shares many genes with the monocyte program. A motif without a deviation therefore says little about its factor’s activity.

Score CUT&RUN binding sites

A CUT&RUN experiment for one factor maps where that factor was bound, without relying on a motif. Map the SPI1 peaks from primary human monocytes onto the ATAC peaks and score them with chromVAR in the same way. Any set of regions works: CUT&Tag or ChIP-seq peaks, or the peaks of another dataset.

2,519 ATAC peaks overlap an SPI1 CUT&RUN peak
SPI1 CUT&RUN peaksSPI1 motif
CD14 monocyte10.704.38
CD16 monocyte10.755.69
Dendritic cell11.307.62
Plasmacytoid DC0.323.97
B cell-1.341.30
CD4 T cell-6.88-3.65
CD8 T cell-6.82-3.66
NK cell-4.64-2.68

Started: 2026-11-28T19:13:41.687142Z | Wall time: 16.546 s

Far fewer peaks overlap an SPI1 CUT&RUN peak than hold a match of the SPI1 motif, as the outputs above count. These monocyte binding sites separate myeloid cells from lymphocytes more sharply than the SPI1 motif: their mean z-scores are higher in monocytes and dendritic cells and lower in T cells than the motif’s, which also counts sites that SPI1 does not occupy in monocytes. Plasmacytoid DCs and B cells, where the motif is accessible, show no gain at the monocyte sites. Binding sites differ between cell types, so binding data describe the cell type that was profiled, here monocytes.

The methods page compares these steps with pySCENIC, chromVAR, and Hotspot, and the regulons API reference lists every function.

References
  1. Aibar, S., González-Blas, C. B., Moerman, T., Huynh-Thu, V. A., Imrichova, H., Hulselmans, G., Rambow, F., Marine, J.-C., Geurts, P., Aerts, J., van den Oord, J., Atak, Z. K., Wouters, J., & Aerts, S. (2017). SCENIC: single-cell regulatory network inference and clustering. Nature Methods, 14(11), 1083–1086. 10.1038/nmeth.4463
  2. Schep, A. N., Wu, B., Buenrostro, J. D., & Greenleaf, W. J. (2017). chromVAR: inferring transcription-factor-associated accessibility from single-cell epigenomic data. Nature Methods, 14(10), 975–978. 10.1038/nmeth.4401
  3. Moerman, T., Aibar Santos, S., Bravo González-Blas, C., Simm, J., Moreau, Y., Aerts, J., & Aerts, S. (2018). GRNBoost2 and Arboreto: efficient and scalable inference of gene regulatory networks. Bioinformatics, 35(12), 2159–2161. 10.1093/bioinformatics/bty916
  4. Van de Sande, B., Flerin, C., Davie, K., De Waegeneer, M., Hulselmans, G., Aibar, S., Seurinck, R., Saelens, W., Cannoodt, R., Rouchon, Q., Verbeiren, T., De Maeyer, D., Reumers, J., Saeys, Y., & Aerts, S. (2020). A scalable SCENIC workflow for single-cell gene regulatory network analysis. Nature Protocols, 15(7), 2247–2276. 10.1038/s41596-020-0336-2