Skip to contents

Neighbourhood construction

Define transcriptional neighbourhoods and choose a clustering resolution.

test_resolution()
Test Leiden clustering resolutions on a nearest-neighbour graph
plot_resolution_results()
Plot mean community size across tested resolutions
create_communities()
Create cell communities using Leiden community detection
plot_nhood_sizes()
Plot the distribution of neighbourhood sizes
nhood_umap()
Compute Neighbourhood UMAP Centroids

Neighbourhood annotation

Assign cell type labels and composition to each neighbourhood.

nhood_annotation()
Assign Dominant Annotation to Neighbourhoods
nhood_annotation_props()
Calculate Cell Annotation Proportions per Neighbourhood

Repertoire metrics

Compute receptor repertoire features for each neighbourhood.

nhood_diversity()
Calculate Neighbourhood Clonal Diversity Indices
nhood_shm()
Calculate Neighbourhood Somatic Hypermutation Statistics
nhood_cdr3_convergence()
Compute inter-clonal CDR3 amino acid convergence scores per neighbourhood
nhood_cdr3_convergence_matrices()
Extract pairwise CDR3 convergence matrices for selected neighbourhoods
merge_nhood_results()
Merge Neighbourhood Analysis Results

Visualisation

Plot neighbourhood-level results.

plot_nhood_umap()
Plot neighbourhood UMAP with optional cell-level and edge overlays
plot_nhood_beeswarm()
Beeswarm plot for neighbourhood-level metrics
plot_nhood_scatter()
Scatter plot of neighbourhood-level metrics
plot_capture_efficiency()
Plot VDJ contig capture efficiency across neighbourhoods

Example data

tevra_example
Example dataset: murine splenic B cells