mantispy.pl.dose_response#
- mantispy.pl.dose_response(adata, compound, key='dose_response', compound_key='Metadata_Compound', dose_key='Metadata_Concentration', response=None, ax=None)#
One compound’s response against dose, with the fitted curve when there is one.
- Parameters:
adata (
AnnData) – Object holding the tabledose_response()wrote.compound (
str) – Which compound of that table to draw.key (
str(default:'dose_response')) – Name of that table inuns["mantispy"].compound_key (
str(default:'Metadata_Compound')) –obscolumn naming the compound of each well.dose_key (
str(default:'Metadata_Concentration')) –obscolumn holding the dose of each well.response (
str|None(default:None)) –obscolumn drawn against the dose.Nonereads the columndose_response()was given, so a plot cannot silently draw a different one than the table was fitted from.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, with a log
yscale where every drawn response is positive, since a distance from the controls has a long right tail and one stray well would otherwise flatten the rest onto the baseline. The scale is decided per axes, so panels drawn side by side can differ; set it on the returned axes to compare them.- Raises:
KeyError – There is no such table, or it holds no such compound.