# 09 L-R Analysis Logic

## Quick Answer
L-R Analysis identifies which query genes act as ligands or receptors and lists matched partners from curated ligand-receptor resources.

## What this does
Provides role-centric ligand/receptor interpretation and bipartite visualization.

## Inputs
- Query genes
- Curated ligand-receptor pair table

## Outputs
- Query-as-ligand table with receptor partners
- Query-as-receptor table with ligand partners
- Bipartite graph for relationship scanning

## Interaction UX (Phase 11)
- Dot-plot points and bipartite links are click-selectable and open a shared inline pair-detail panel.
- Role-centric partner summaries are displayed as accordions per query gene to avoid long static lists.
- Pair detail includes effect framing (stimulatory/inhibitory/unknown), source badges, and direct graph-explore actions.

## How calculated
Query gene symbols are matched against ligand and receptor fields in curated pair data. Partner lists are grouped and counted per query gene for concise reporting.

This role-centric L-R tab is distinct from Cell Communication scoring. The communication module intersects L-R pairs with selected source/target cells and uses the configurable expression score plus relevance components documented in the scoring section.

## What to download
Use role-specific CSV exports to preserve partner-level evidence and partner counts.

## Known limits
Not all biological signaling contexts are represented in one LR source; absence from this module is not proof of no signaling role.
