mantispy.pl.replicate_correlation#

mantispy.pl.replicate_correlation(adata, key='percent_replicating', ax=None)[source]#

Observed replicate correlation against each group’s permutation threshold.

Points above the diagonal replicate; the distance from it is the margin.

Parameters:
adata AnnData

Object holding the table percent_replicating() wrote.

key str (default: 'percent_replicating')

Name of that table in uns["mantispy"].

ax Axes | None (default: None)

Axes to draw on, or None for a new figure.

Return type:

Axes | None

Returns:

The axes when the caller passed ax, else None because the plot then owns the figure it created. When returned they hold the groups that replicate colored apart from those that do not and the diagonal drawn as a reference line.

Raises:

KeyError – uns["mantispy"] holds no table under key.