> For the complete documentation index, see [llms.txt](https://docs.owkin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.owkin.com/explore-and-analyse-data/data-analysis/single-cell/cell-cell-communication.md).

# Cell–cell communication

Infer potential communication between cell types through ligand–receptor signaling, with interaction strength and significance scores calculated using LIANA+.

Infer potential communication between cell types through ligand–receptor signaling, with interaction strength and significance scores calculated using LIANA+.

## Ligand-receptor communication

### Description

#### Analysis summary

Infers signaling between cell types: which cell type sends which ligand to which receptor on which receiving cell type, with an interaction strength and a specificity or p-value for each candidate interaction. Runs LIANA+ over all cells pooled together, grouped by cell type.

#### Computation

Cell-level expression is pivoted into a cell x gene matrix and grouped by cell type. Candidate pairs come from a curated ligand-receptor resource (or an explicit pair list), filtered by expression: a pair is kept only where ligand and receptor are each expressed in at least a minimum fraction of the relevant group's cells, and groups below a minimum size are dropped. One of four LIANA+ scoring methods is then applied — CellChat (communication probability), CellPhoneDB (mean ligand x mean receptor expression), NATMI (expression product with edge-specificity weights), or a Reciprocal Rank Fusion consensus that runs CellPhoneDB and NATMI and fuses their per-method ranks — assigning every (source, target, ligand, receptor) interaction a strength and a specificity score returned under two canonical columns. The columns keep the same names across methods but not the same meaning: the strength score is higher = stronger (for the consensus, a rank-based score comparable only within the run), and the specificity score is a permutation p-value (lower = more significant) except for NATMI, where it is a specificity weight (higher = more specific). The result carries labels naming the exact statistic each column holds. Permutation p-values cannot resolve below one over the number of permutations, and the result states that floor. No group comparisons are computed: significance is per interaction within the pooled data.

#### When to use

Use for intercellular-communication questions: which cell types talk to each other, through which ligand-receptor pairs, and which interactions are strongest or most significant. For how much of each sample each cell type accounts for, use proportion\_analysis; for how many cells express a gene or its mean level per group, use sparse\_aggregation\_analysis.

#### Caveats

A predicted interaction only means the sender expresses the ligand and the receiver the receptor — it does not establish physical contact, receptor binding or downstream signaling, so treat results as hypotheses to confirm in tissue or by other means. Cells are pooled into a single inference: there is no group or patient breakdown, so compare conditions by running the analysis separately per group. Rare cell types are dropped below the minimum group size, and pairs whose genes miss the expression threshold disappear — on small cohorts or targeted gene panels this can silently remove most interactions.

LIANA+ — the ligand-receptor inference toolkit. Documentation: <https://liana.readthedocs.io/en/stable/> — method paper: <https://www.nature.com/articles/s41556-024-01469-w>.

### Example questions

<details>

<summary><code>example questions</code></summary>

* Cell-cell communication between cell types via ligand-receptor pairs.
* Which cell types signal to T cells.

</details>

### Input columns

<details>

<summary><code>input columns</code></summary>

| column      | type        | required | description                                                                                                                                                       |
| ----------- | ----------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| index       | any         | required | Cell identifier (e.g. cell\_id). One row per (cell, gene); becomes the AnnData obs index.                                                                         |
| value       | numeric     | required | Log1p-normalized expression (e.g. count\_lognorm) used directly as the expression matrix. Do not pass raw counts.                                                 |
| x\_group    | categorical | required | Gene name (e.g. gene\_name). Pivoted into the columns of the cell x gene matrix. Provide the full gene space (no marker pre-filtering) in order to match the lig… |
| y\_group    | categorical | required | Cell type each cell belongs to (e.g. cell\_type\_level\_2\_mid); one label per cell.                                                                              |
| patient\_id | categorical | required | Patient identifier required by population-summary contract conventions. Carried for compliance only; the single pooled run ignores it.                            |

</details>

### Visualizations

* `dotplot` How to read: Rows are ligand → receptor pairs, columns are the receiver cell types, and a dropdown selects the sender cell type whose outgoing interactions are shown. Dot colour encodes the interaction strength; the colour bar is labelled with the exact score in use, which changes with the scoring method. Dot size encodes statistical confidence and always grows with it: one minus the p-value for methods that have one (more significant = larger), the specificity weight itself for NATMI (more specific = larger); the size legend names which score applies. Read the plot as: from the chosen sender, which receivers are targeted by which ligand-receptor pairs, and how strong and how specific each interaction is.
* `parallel_categories` How to read: One line per interaction, running left to right across four axes — Sender, Ligand, Receptor, Receiver — so following a line reads out the full path of one communication, and bundles of lines between the same cell types expose the dominant communication axes. Line colour, width and opacity all encode the interaction strength (the colour bar is labelled with the exact score in use). Hovering a line gives its exact strength and its p-value or specificity; p-values below the smallest value the permutation test can resolve are shown as '< floor' rather than a false zero. When only the strongest interactions are kept, a caption states how many of the evaluated interactions are drawn. This plot needs the ECharts engine; under Plotly the dotplot is drawn instead.

### Example analysis 1

#### Name — Cell-Cell Communication (Bladder, Immune)

#### Visualization — `dotplot`

![Cell-Cell Communication (Bladder, Immune)](https://1034377358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmCjUj6W0sltjW7q2vBp%2Fuploads%2Fgit-blob-61ddfb50bcf62204177e10702a02bcfc8f1700ff%2Fcell_cell_communication__ligand_receptor__dotplot.png?alt=media)

### Example analysis 2

#### Name — Cell-Cell Communication (Bladder, Immune)

#### Analysis parameters

<details>

<summary><code>analysis_name, analysis_params, viz_params</code></summary>

```json
{
  "analysis_name": "cell_cell_communication",
  "analysis_params": {
    "method": "cellphonedb_natmi",
    "expr_prop": 0.1,
    "min_cells": 5,
    "n_perms": 100,
    "top_n": 200
  },
  "viz_params": {
    "plot_name": "parallel_categories",
    "title": "Cell-Cell Communication (Bladder, Immune)"
  }
}
```

</details>

#### Visualization — `parallel_categories`

![Cell-Cell Communication (Bladder, Immune)](https://1034377358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmCjUj6W0sltjW7q2vBp%2Fuploads%2Fgit-blob-59f5860fac18f8b034075e88e894cf536945f123%2Fcell_cell_communication__ligand_receptor__parallel_categories.png?alt=media)

#### Output table

<details>

<summary><code>descriptive_stats</code> (first 10 of 200 rows)</summary>

| ligand | ligand\_complex | ligand\_means | ligand\_props | receptor | receptor\_complex | receptor\_means | receptor\_props | source      | target         | lr\_means | cellphone\_pvals | rank\_cellphonedb | ligand\_natmi | ligand\_means\_natmi | ligand\_means\_sums | ligand\_props\_natmi | receptor\_natmi | receptor\_means\_natmi | receptor\_means\_sums | receptor\_props\_natmi | expr\_prod | spec\_weight | rank\_natmi | rrf\_score | magnitude | pval\_specificity |
| ------ | --------------- | ------------- | ------------- | -------- | ----------------- | --------------- | --------------- | ----------- | -------------- | --------- | ---------------- | ----------------- | ------------- | -------------------- | ------------------- | -------------------- | --------------- | ---------------------- | --------------------- | ---------------------- | ---------- | ------------ | ----------- | ---------- | --------- | ----------------- |
| COL1A1 | COL1A1          | 10.57         | 0.9898        | CD93     | CD93              | 5.576           | 0.7346          | Fibroblast  | Endothelial    | 8.072     | 0.0              | 1                 | COL1A1        | 10.57                | 37.85               | 0.9898               | CD93            | 5.576                  | 12.78                 | 0.7346                 | 58.93      | 0.1218       | 1           | 0.03279    | 1.0       | 0.0               |
| COL1A1 | COL1A1          | 10.57         | 0.9898        | ITGA5    | ITGA5             | 5.554           | 0.6809          | Fibroblast  | Muscle         | 8.062     | 0.0              | 2                 | COL1A1        | 10.57                | 37.85               | 0.9898               | ITGA5           | 5.554                  | 21.68                 | 0.6809                 | 58.7       | 0.07154      | 2           | 0.03226    | 0.9839    | 0.0               |
| COL1A1 | COL1A1          | 10.57         | 0.9898        | ITGA5    | ITGA5             | 5.423           | 0.74            | Fibroblast  | Endothelial    | 7.996     | 0.0              | 3                 | COL1A1        | 10.57                | 37.85               | 0.9898               | ITGA5           | 5.423                  | 21.68                 | 0.74                   | 57.31      | 0.06985      | 3           | 0.03175    | 0.9683    | 0.0               |
| COL1A1 | COL1A1          | 10.57         | 0.9898        | CD44     | CD44              | 5.281           | 0.6899          | Fibroblast  | Mast           | 7.925     | 0.0              | 4                 | COL1A1        | 10.57                | 37.85               | 0.9898               | CD44            | 5.281                  | 37.6                  | 0.6899                 | 55.81      | 0.03921      | 4           | 0.03125    | 0.9531    | 0.0               |
| COL1A2 | COL1A2          | 9.858         | 0.9898        | CD93     | CD93              | 5.576           | 0.7346          | Fibroblast  | Endothelial    | 7.717     | 0.0              | 6                 | COL1A2        | 9.858                | 34.44               | 0.9898               | CD93            | 5.576                  | 12.78                 | 0.7346                 | 54.97      | 0.1249       | 5           | 0.03054    | 0.9314    | 0.0               |
| COL1A1 | COL1A1          | 10.57         | 0.9898        | SDC1     | SDC1              | 4.959           | 0.7066          | Fibroblast  | Malignant      | 7.764     | 0.0              | 5                 | COL1A1        | 10.57                | 37.85               | 0.9898               | SDC1            | 4.959                  | 18.03                 | 0.7066                 | 52.42      | 0.07681      | 7           | 0.03031    | 0.9245    | 0.0               |
| APP    | APP             | 5.757         | 0.7747        | CD74     | CD74              | 9.468           | 0.9774          | Endothelial | DC             | 7.612     | 0.0              | 8                 | APP           | 5.757                | 31.73               | 0.7747               | CD74            | 9.468                  | 56.8                  | 0.9774                 | 54.5       | 0.03024      | 6           | 0.02986    | 0.9107    | 0.0               |
| COL1A1 | COL1A1          | 10.57         | 0.9898        | CD36     | CD36              | 4.808           | 0.6615          | Fibroblast  | Stromal\_other | 7.688     | 0.0              | 7                 | COL1A1        | 10.57                | 37.85               | 0.9898               | CD36            | 4.808                  | 7.494                 | 0.6615                 | 50.81      | 0.1791       | 10          | 0.02921    | 0.8909    | 0.0               |
| COL1A2 | COL1A2          | 9.858         | 0.9898        | CD44     | CD44              | 5.281           | 0.6899          | Fibroblast  | Mast           | 7.569     | 0.0              | 9                 | COL1A2        | 9.858                | 34.44               | 0.9898               | CD44            | 5.281                  | 37.6                  | 0.6899                 | 52.06      | 0.04021      | 8           | 0.0292     | 0.8906    | 0.0               |
| APP    | APP             | 5.757         | 0.7747        | CD74     | CD74              | 8.992           | 0.9724          | Endothelial | MoMac          | 7.375     | 0.0              | 13                | APP           | 5.757                | 31.73               | 0.7747               | CD74            | 8.992                  | 56.8                  | 0.9724                 | 51.77      | 0.02872      | 9           | 0.02819    | 0.8598    | 0.0               |

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.owkin.com/explore-and-analyse-data/data-analysis/single-cell/cell-cell-communication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
