The Developing Mouse Visual Cortex Gene Expression Viewer is an interactive R Shiny application for exploring pseudobulk gene expression and the fraction of cells expressing each gene across developmental age, developmental stage, cell type, donor, library, and anatomical metadata. Users can identify candidate genes from a sortable statistics table, retrieve genes from public AWS storage, apply multiple simultaneous filters, create trajectory, heatmap, dot, violin or boxplot, and two-gene correlation views, and share configured analyses through bookmarked URLs.

The underlying resource is part of the Allen Brain Cell Atlas, an open-science platform for visualizing and analyzing multimodal single-cell data across the mammalian brain.

Launch the interactive viewer Go to GitHub

Getting started

Explore what the viewer can do through examples that revisit findings from Continuous cell-type diversification in mouse visual cortex development. Each linked example opens a gene with its filters and plot settings already configured.

Figure 2c: Cell-type markers

Explore prenatal and developmental expression patterns across cell populations.

Tnc: prenatal glioblast expression

Examine prenatal Tnc expression in glioblasts using an embryonic-stage heatmap.

Show this example

Neurog1: prenatal nonIT IP expression

Explore prenatal Neurog1 expression in nonIT intermediate progenitor (IP) cells using a dot plot.

Show this example

Hmga2: enriched expression in NEC cells

Compare Hmga2 across development, with its highest expression in neuroepithelial (NEC) cells.

Show this example

Figure 2d: Developmental stages in NEC and RG populations

Compare early and late expression patterns in neuroepithelial (NEC) and radial glial (RG) populations.

Sntb2: early NEC and RG expression

Explore early Sntb2 expression in NEC and RG populations using a prenatal dot plot.

Show this example

Sparcl1: later NEC and RG expression

Examine later Sparcl1 expression in NEC and RG populations. Tile labels show the small number of contributing observations, highlighting sparse sampling.

Show this example

Figure 4b: Gene-expression trajectories

Explore contrasting developmental trajectories across neuronal and glial populations.

Pou3f1: early IT peak and sustained L5 ET expression

Pou3f1 expression peaks early across IT glutamatergic populations, while showing sustained higher expression in L5 ET cells.

Show this example

Prox1: contrasting GABAergic trajectories

Compare declining Prox1 expression in SST/MGE-derived GABAergic populations with increasing expression in CGE-derived GABAergic populations.

Show this example

Sox10: OPC increase and high oligodendrocyte expression

Explore increasing Sox10 expression in oligodendrocyte precursor cells (OPCs) and high expression in oligodendrocytes.

Show this example

Other examples

Explore additional developmental patterns and compare expression between genes.

Chrna6: late L5 ET expression (Extended Data Figure 6g)

Explore Chrna6 expression across L5 ET subclusters. Expression begins relatively late, around P9, and peaks in adulthood; the distinct Chrna6 subset corresponds to clusters 371–373.

Show this example

Pvalb: later expression onset (Extended Data Figure 11d)

Compare Pvalb expression in Pvalb and Sst populations, with Pvalb expression onset around P11–P14.

Show this example

Sst: earlier expression onset (Extended Data Figure 11d)

Compare Sst expression in Sst and Pvalb populations. Sst expression suggests earlier Sst-type formation, around P3.

Show this example

Sox4 and Sox11: correlated expression

Compare the neurogenesis markers Sox4 and Sox11 across cell types. Their expression is generally correlated, with relatively higher Sox4 expression in oligodendrocytes.

Show this example

Cux2: contrasting GABAergic and L2/3 IT trajectories

Cux2 expression decreases in Pvalb/Sst GABAergic populations while increasing in L2/3 IT glutamatergic populations.

Show this example

Data

Scientific source

The viewer is based on the data resource associated with:

Gao, Y., van Velthoven, C. T. J., Lee, C., et al. Continuous cell-type diversification in mouse visual cortex development. Nature (2025). View the publication DOI.

Source documentation, notebooks, manifests, expression matrices, metadata, and taxonomy annotations are available through the Developing Mouse Visual Cortex dataset documentation and the ABC Atlas Access Python package.

Pseudobulk expression

The app uses a pseudobulk AnnData source generated from the raw Developing Mouse Visual Cortex single-cell count matrix. Raw counts were summed separately for each combination of library_label and the source cluster identifier (cluster_alias). This identifier is retained here as data-preparation provenance, but is not exposed as a selectable metadata field in the viewer. Each row is a library-by-cluster observation, each column is a gene, and each value in X is the summed raw count across contributing cells. A matching sparse number_of_cells_expressing layer records how many source cells have a raw count greater than zero for each gene and pseudobulk observation.

Gene-level Parquet files

The pseudobulk source was converted into a gene-partitioned Parquet resource. Each gene is stored under counts_by_gene/gene=<gene_key>/ with sample_id, summed_counts, and number_of_cells_expressing. The app opens only the selected partition and supports one or multiple Parquet files in that directory. If detection counts are unavailable in an older partition, expression-only views can still be used. Fraction-expressing views and fraction-sized dot plots require valid detection counts; dot size does not fall back to expression.

Expression is displayed as counts per ten thousand (CP10K), using the existing CPM scaling factors:

CPM scaling factor = 1,000,000 / total counts across all genes in the pseudobulk observation
CP10K for a selected gene = summed counts × (CPM scaling factor / 100)

Users may display CP10K or ln(CP10K + 1), calculate the fraction of cells expressing a gene as number_of_cells_expressing / number_of_cells, and exclude zero-count observations. For grouped dot-plot values, fractions are weighted correctly by summing expressing-cell counts and total-cell counts before division.

Metadata and value sets

Values absent from value_sets.csv are retained and assigned distinct fallback colors. For cluster-level exploration, use subcluster, as in the Chrna6 example; cluster_alias is not offered as a metadata selector.

AWS storage and access

The app anonymously reads lightweight metadata and statistics at startup and retrieves expression only for selected genes. No AWS credentials are required. Current test data are in the public TEST_dev_mouse S3 prefix.


Using the viewer

Left control panel

The left panel controls gene retrieval, stacked filtering, expression scaling, and plot configuration. Filter and plot controls appear after the first gene has loaded.

Gene

  1. Type a gene symbol or select a gene from the statistics table.
  2. Select Get gene data.
  3. The app reads the selected partition, joins counts to metadata by sample_id, calculates CP10K, and stores the result in an in-memory cache.
  4. After loading a gene, the sidebar provides separate Plot in ABC Atlas and GeneCards buttons.

The selector starts empty, displays an example gene, and does not require deleting a prefilled value.

Filter and scale

Plot controls


Application tabs

Select gene of interest

This tab contains a sortable table of gene-level exploratory statistics, including expression magnitude, developmental change, regional and subclass specificity, fraction-expressing summaries, and gene type. Numeric fields retain numeric sorting and range filters. Gene symbols are plain text; hovering over a defined column header displays its description. Use the separate sidebar GeneCards button to open the loaded gene.

Exact-value multi-select filters are provided below the table for gene_symbol, max_ROI, max_subclass, and gene_type. Selections within one field use OR; filters across fields use AND. Gene-symbol filtering uses the plain gene symbol. Selecting a table row places the gene into the Gene symbol control.

Important: Summary-table statistics are exploratory aids and are not substitutes for the analyses in the source study.

Plot gene of interest

The plotting tab supports five visualization types with matching plot-specific statistical summaries.

Trajectory across development

The trajectory plot displays expression or fraction expressing across an ordered progression variable. Developmental ages are biologically ordered; visual gaps are capped to compress large unsampled intervals while retaining endpoint padding.

Heatmap of mean expression

The heatmap displays mean expression or mean fraction expressing for every occupied combination of two dimensions.

Dot plot of mean expression

The dot plot uses the same two-dimensional grouping as the heatmap. Dot color represents mean expression, while dot area represents the weighted fraction of cells expressing the gene. Min. dot size and Max. dot size control the displayed size range without changing the underlying proportions; combinations with no data remain absent. The note below the plot reports separate sparse rook-neighbor Moran's I tests with 999 permutations for expression and fraction expressing.

Violin plot with observations

The distribution plot shows expression or fraction-expressing distributions across horizontal-axis groups and second-dimension facets.

Two-gene correlation

This plot compares two separately retrieved genes across matched sample_id values after applying active filters. The selected metric can be ln(CP10K + 1) or fraction expressing.

Plot-specific exploratory statistics

Interpretation: These statistics describe the currently selected gene, filters, dimensions, and displayed observations. Interactive testing across many genes and configurations is exploratory and introduces multiple-comparison considerations beyond within-plot BH corrections.

Running the app

Most users should use the hosted viewer. The repository also supports local development and reproducible deployment.

Requirements

The app uses renv.lock to record tested package versions.

Local setup

  1. Clone the mouse-developing-vis-app repository.
  2. Open RStudio in code/shiny/.
  3. Restore dependencies from renv.lock.
install.packages("renv")
renv::restore()

Run the app

# From the code/shiny/ directory opened above:
shiny::runApp(".")

Repository structure

.
├── .github/workflows/deploy-connect.yml
├── code/
│   ├── data-preparation scripts
│   └── shiny/
│       ├── app.R
│       ├── abc_atlas_gene_urls.csv.gz
│       ├── table_column_definitions.csv
│       ├── renv.lock
│       └── www/
│           ├── Developing_Mouse_Visual_Cortex_logo.png
│           ├── allen_institute_logo.svg
│           └── tokens.csv
├── index.html
├── README.md
└── requirements.txt

Large expression files, pseudobulk sources, metadata, and gene statistics remain outside GitHub in external data assets and public AWS storage.


Citation

If you use the viewer or underlying data, cite the source study:

Gao, Y., van Velthoven, C. T. J., Lee, C., et al. Continuous cell-type diversification in mouse visual cortex development. Nature (2025). View the publication DOI.

Please also report the viewer version or Git commit and the public-data access date.


Feedback and support

Questions, bug reports, and suggestions are welcome. Open a GitHub issue or contact Jeremy Miller.

How the app was made

The Rebuilding and Deployment Guide documents the reproducible workflow used to prepare the pseudobulk and Parquet resources, publish data to AWS, run the Shiny app, deploy to Posit Connect, and configure automated deployment.

Acknowledgements

The underlying resource was generated through extensive experimental, computational, taxonomy, data-access, and publication efforts. We acknowledge the teams responsible for data generation, quality control, analysis, taxonomy construction, ABC Atlas Access, public cloud hosting, reproducible workflows, and application deployment.