- stlearn.pl.lr_diagnostics(adata, highlight_lrs: Optional[list] = None, n_top: Optional[int] = None, color0: str = 'turquoise', color1: str = 'plum', figsize: tuple = (10, 4), lr_text_fp: Optional[dict] = None, show: bool = True)¶
- Diagnostic plot looking at relationship between technical features of lrs and lr rank.
Two plots generated: left is the average of the median for nonzero expressing spots for both the ligand and the receptor on the y-axis, & LR-rank by no. of significant spots on the x-axis. Right is the average of the proportion of zeros for the ligand and receptor gene on teh y-axis.
adata (AnnData) – The data object on which st.tl.cci.run has been applied.
highlight_lrs (list) – List of LRs to highlight, will add text and change point color for these LR pairs.
n_top (int) – The number of LRs to display. If None shows all.
color0 (str) – The color of the nonzero-median scatter plot.
lr_text_fp (dict) – Font dict for the LR text if highlight_lrs not None.
axis_text_fp (dict) – Font dict for the axis text labels.
Figure and axes of the plot, if show=False.
- Return type: