mantispy.pl.transport#
- mantispy.pl.transport(adata, key='transport', level=None, top=25, ax=None)#
Agreement per perturbation, ranked, with the ones that reproduce colored.
With more than
topperturbations, the highest and lowest ranked are shown. The perturbations at the bottom are the ones whose effects did not reproduce across settings.- Parameters:
adata (
AnnData) – Object holding the tabletransport()wrote.key (
str(default:'transport')) – Name of that table inuns["mantispy"].level (
str|None(default:None)) – Which level of that table to draw, orNonefor the last one it holds.top (
int(default:25)) – How many perturbations to draw, taken half from each end of the ranking when there are more.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, with one bar per perturbation, the ones that reproduce in crimson, and how many of them do in the title.
- Raises:
KeyError – There is no such table, or it holds no such level.