liana.pl.lric_lineplot#
- liana.pl.lric_lineplot(adata=None, uns_key='lric', liana_res=None, interaction=None, source=None, target=None, max_dist=None, figure_size=(6, 4), return_fig=True)#
Plot the g(r) profile of a single interaction from
lric/cross_pcf.g(r)is the observed count at radiusrrelative to the closed-form random-labelling null;g(r) > 1is co-enrichment,< 1depletion, and the dashed line at1marks the null. For pairwise LRIC the full coupling is decomposed into its architecture-only (g_pcf) and expression-only (g_expr) components, drawn as separate lines.- Parameters:
- adata
AnnData|None(default:None) Annotated data object. Its
.uns[uns_key]holds the result. Mutually exclusive withliana_res.- uns_key
str(default:'lric') Key in
adata.unsthat contains the LIANA results. Default is'liana_res'.- liana_res
DataFrame|None(default:None) liana_resaDataFramein liana’s format.A
lric/cross_pcfresult, used whenadataisNone.- interaction
str|None(default:None) The
interactionto plot –"source^target"forcross_pcf,"ligand^receptor"forlric.- source
str|None(default:None) Sender cell type; only for results that carry a
sourcecolumn.- target
str|None(default:None) Receiver cell type; only for results that carry a
targetcolumn.- max_dist
float|None(default:None) Plot only radii
r < max_dist;Noneuses all radii.- figure_size
tuple[float,float] (default:(6, 4)) Figure x,y size
- return_fig
bool(default:True) boolwhether to return the fig object.
- adata
- Return type:
- Returns:
A
plotnine.ggplotifreturn_figelseNone(draws the plot).