10x Genomics Support/Loupe Browser/Tutorials/

Evaluate Gene Markers

Goal: To evaluate the expression profiles of known gene markers of interest in the context of tissue morphology. This tutorial will showcase how to obtain the spatial expression patterns of known gene markers associated with distinct cell types using a preloaded mouse brain dataset in Loupe Browser.

  • Download and install Loupe Browser on either macOS or Windows.
  • Familiarity with Loupe Browser navigation. Learn more in the Navigation Tutorial.
  • Access the tutorial dataset.

To effectively evaluate gene expression data in the context of the tissue image, it is helpful to understand the underlying morphology that can be uncovered from the tissue image. This can be achieved by making the spots transparent using the Spot Opacity slider located at the top left corner and moving it to the left.

Using a combination of zoom and mouse dragging functionality navigate the image, evaluate the morphology, and identify landmarks of interest. You can zoom using either the mouse or the zoom slider. To revert back to default view click . For example, in this image, the curvature of the hippocampus is highlighted in blue staining. The lateral ventricle is highlighted by a blue arrow.

Loupe Browser provides the capability to filter the expression for a specific gene or list of genes using the Active Feature List. Click on the mode selector to select Gene/Feature Expression and click on 'Search for a feature' to start typing.

To visualize gene expression, make the spots opaque using the Spot Opacity slider. First, we will explore the neuronal cell types using some well known markers. Type Map2, which is responsible for microtubule protein that provides the structural support to neurons, in the text box. The auto-complete functionality helps to find genes of interest faster. Add the gene to the Active Feature List using any one of these methods:

  • Click on the name from the list
  • Press tab
  • For Windows press enter or for macOS press return

The tissue image is then updated to color-code spots based on the level of Map2 within that spot. High expression of the gene is indicated by a darker spot. As expected high Map2 expression is spread across the tissue as it is a general mature neuronal marker. Some spots appear out of the range of the color scale, in this case, light gray, and correspond to spots that show no expression of the selected gene.


Hovering over a gene name reveals two icons, an information icon and a trash icon . Clicking loads the Ensembl reference page for that gene as a new tab in web browser. Click to remove that gene from the current list. The color scale option has been updated from default using the color palette in the bottom-right corner of the browser.

Next continue with these additional neuronal markers:

  • Rbfox3 which is shown to be important for neurogenesis and synaptogenesis, especially in the subgranular layer of the hippocampus

  • Slc17a7 encodes a vesicle-bound, sodium-dependent transporter specifically found in glutamatergic neurons

  • Gad1 encodes glutamic acid decarboxylase 67 which is crucial for gamma-aminobutyric acid (GABA) neurotransmission in neurons



These markers give a clear indication of the distinction in spatial expression. Rbfox3 and Slc17a7 are prominently expressed in excitatory neurons of the hippocampus and cerebral cortex while Gad1 has a heavier presence in the inhibitory neurons of the thalamus region. Thus far, we have been examining the expression pattern for each gene. If you click the actively selected gene and deselect it, the resulting color signature represents a combination of expression levels across all the genes in the list. This allows you to visualize a set of genes associated with a cell type more confidently.

Oligodendrocytes produce myelin sheaths that surround the axons of neurons. We will use two markers to identify this cell type:

  • Mbp which encodes the myelin basic protein which is a major constituent of the myelin sheath
  • Mog which is a glycoprotein uniquely expressed on the surface of oligodendrocytes

As expected, strong expression of these markers coincides with anatomical locations of the major white matter tracks, including the corpus callosum, fimbria, cerebral peduncle, and optic track.

However, not all genes show definite patterns in spatial expression. As an example, look at some markers for microglia cells which are the resident immune cells:

  • Cx3cr1 is a chemokine receptor highly expressed in microglia
  • Tmem119 which is a cell-surface protein recently characterized as a microglial marker

You can export this list for future reference by clicking the three vertical dots and choosing Export Lists option which downloads a file in CSV format to a location of your choice. The option to import a feature list is discussed in the Explore Spatial Clusters tutorial.

Another metric that is available to examine the spatial distribution of genes is by using the spatial correlation coefficient Moran's I which ranges from -1 (perfectly dispersed) to 1 (perfectly enriched). This metric is available for datasets analyzed using Space Ranger 1.3 or later.

Click on in the bottom left corner to access the spatial enrichment table. The features displayed in this table are filtered by Moran's I ≥0.05 and p-value ≤0.05 (p-value adjustment is performed using the Benjamini-Hochberg Procedure) and rounded to two decimal places to highlight the most spatially correlated features. The full list of Moran's I values for any dataset is captured in spatial_enrichment.csv which is generated in the outs/ folder after spaceranger count run.

The Spatial Enrichment table can be sorted by Moran's I value, UMI count, and the number of Spots for which at least one valid UMI is detected for the feature. The list of features can also be filtered by a specific Moran's I value range using the Filter Table . The filtered and sorted list can be exported in CSV format by clicking . Clicking on next to column headers provides a pop box with information. Note that you can resize the table to display more rows using your cursor to drag the top border of the panel up. Clicking on the feature name pops a window with the option to add to Active Feature List.


We will now examine two sets of genes for examples to understand spatiality. Note the values visualized correspond to the Log2 value of the Feature Max attribute. For the first set, we choose genes Ttr and Defb11. Note that you can either use the search option in the Active Feature List or click on the feature name in the spatial enrichment table to add it to the list.


Ttr is detected across many spots (2674) and the Moran's I value is 0.81. The spatial pattern looks spread out with high expression in the lateral and third ventricles. On the other hand Defb11 is detected in a smaller number of spots (61), has Moran's I of 0.52 and the spatial pattern is localized to only the lateral and third ventricles. This is consistent with both the gene function and cell type association.

Ttr or Transthyretin encodes a carrier protein for thyroxine and retinol in cerebrospinal fluid (CSF) and is highly expressed in choroid plexus epithelial cells. However, its RNA has been detected in the cortex, hippocampus, and thalamus. Defb11 or Defensin beta 11 encodes an antimicrobial peptide and is expressed in choroid plexus epithelial cells. Since it is involved in innate immunity, the baseline expression is low. For the second example, we will look at oligodendrocyte genes Mbp, Mobp and Mog.


A decreasing trend of highly expressed spots is visible moving from left to right in the image above. The spatial enrichment values in the table confirm the visual observation.

NameMoran's IUMI CountSpots
Mbp0.8112.882700
Mobp0.7428.472595
Mog0.575.411984

This is consistent with cell type association. Mbp and Mobp are associated with myelin forming and mature oligodendrocytes. They are also expressed in excitatory, inhibitory, and cholinergic neurons in the hindbrain as well as afferent nuclei of cranial nerves. Mog, on the other hand, is only associated with myelin-forming and mature oligodendrocytes and hence shows lower spatial clustering. Using the methods shown in the tutorial, you can map known gene markers to spots, overlay that information on top of the tissue image, and use that to verify that the expected gene patterns are present in their respective brain tissue types.