mantispy.pl.distance_heatmap#
- mantispy.pl.distance_heatmap(adata, key='edistance', groupby='Metadata_MOA', ax=None)#
The group-by-group distance matrix, ordered so related groups sit together.
- Parameters:
adata (
AnnData) – Object holding the pairwise matrixedistance()wrote withreference=None.key (
str(default:'edistance')) – Name that run’s outputs were stored under, whose matrix iskey + "_pairwise".groupby (
str|None(default:'Metadata_MOA')) –obscolumn to order the groups by, orNoneto keep the matrix’s own order. Ordering also needs anobscolumn naming the groups of the matrix, and without one the matrix is drawn unordered rather than refused.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, holding the distance matrix with a white line at each
groupbyboundary.- Raises:
KeyError –
uns["mantispy"]holds nokey + "_pairwise"matrix.