mantispy.pl.feature_distributions#
- mantispy.pl.feature_distributions(adata, features, groupby='Metadata_Plate', layer_before='raw', kind='ecdf')#
Per-feature distributions, before and after normalization when
layer_beforeexists.- Parameters:
adata (
AnnData) – Object holding the features to draw.features (
Sequence[str]) –var_namesto draw, one column of panels each.groupby (
str(default:'Metadata_Plate')) –obscolumn whose groups are drawn separately within each panel.layer_before (
str|None(default:'raw')) – Layer holding the values before normalization, orNoneto draw only the current ones. A layer that the object does not hold is skipped in the same way.kind (
str(default:'ecdf')) –"ecdf","hist", or"ridge"for one offset filled density per group, which is easier to read with many groups.
- Return type:
- Returns:
A 2-D array of axes with one row per layer shown and one column per feature.
- Raises:
ValueError –
kindis not one of the three accepted values.