Gene co-expression overlap
Quantify expression overlap between two genes or signatures, including the fractions of cells expressing either or both and their Jaccard similarity.
Quantify expression overlap between two genes or signatures, including the fractions of cells expressing either or both and their Jaccard similarity.
Two-feature Jaccard / co-expression overlap
Description
Analysis summary
Quantifies how two features — genes or signatures — overlap across cells or spots: what fraction of observations express only the first, only the second, or both, summarised by a Jaccard index per group.
Computation
For each group, every observation is classified by which of the two features it expresses (a feature is expressed when its presence signal is greater than zero after aggregation; with signatures, a feature's score is the mean of its member genes' signals), giving the percentage of observations expressing only feature A, only feature B, or both — the percentages are calculated over all observations in the group, so the three categories sum to 100% only when every observation expresses at least one feature. Alongside each category's percentage, the mean expression of the observations in it is computed. The Jaccard index — the number of co-expressing observations divided by the number expressing at least one feature — summarises the overlap; it is computed once per group and reported alongside it. A Fisher exact test of the two features' association within each group is computed automatically, with its odds ratio and 95% confidence interval.
When to use
Use this analysis ONLY when the goal is to quantify the overlap between exactly two features — overlap fractions, the Jaccard index, the co-occurrence association. For standard expression summaries of many genes across cell types, use sparse_aggregation_analysis instead.
Caveats
Two features only: no more, no fewer. Mean expression is the mean over all observations in the category, expressing or not. With the spatial neighbourhood option, 'expressing' means the observation itself or any of its nearest neighbours express the feature, while mean expression still reflects the observation itself — the two dimensions are then not strictly comparable.
Example questions
Input columns
Visualizations
dotplotHow to read: One row per group (e.g. cell type); the x-axis always holds the three categories — feature A only, feature B only, and both — so dot positions are comparable across any pair of features. Each dot's area is the share of that group's observations falling in the category (size legend in %), and its colour is the category's mean expression (colour bar). The co-expressing dot's hover adds the group's Jaccard index. A Fisher's exact test of the two features' association within each group is reported in the accompanying statistical table.
Example analysis 1
Name — ERBB2 vs TP53 Co-expression in Immune Cells (MOSAIC Bladder)
Analysis parameters
Visualization — dotplot

Output table
Last updated
Was this helpful?