monkeybread.plot.ligand_receptor_score_barplot_per_niche

monkeybread.plot.ligand_receptor_score_barplot_per_niche(niche_to_lr_to_score, lr_pair, plot_niches=None, ax=None, title=None, show=True, **barplot_kwargs)

Create a barplot showing the ligand/receptor score for a specific ligand/receptor pair within each niche. This function plots the data returned by monkeybread.calc.ligand_receptor_score_per_niche().

Parameters:
Return type:

Optional[Axes]

Returns:

: If show = True, returns nothing. Otherwise, returns the Axes object the plot is contained within.

Example

https://raw.githubusercontent.com/immunitastx/monkeybread/main/docs/_static/ligand_receptor_score_barplot_per_niche.png