Contents
FeatureExtractor
FeatureExtractor.get_object_stats()
Aggregate object stats per obj_id.
area_threshold (int) – All components smaller than this threshold are discarded.
int
agg (Union[Iterable[str], Mapping[str, str]]) – List of aggregation function or dict with {feature: function}. Passed to pd.GroupBy.agg()
Union
Iterable
str
Mapping
{feature: function}
pd.GroupBy.agg()
save (bool) – Save adata object with object_stats_agg entry in obsm.
bool
obsm
DataFrame
pd.DataFrame – obj_id x (clustering, feature) dataframe
Additionally stores result in self.adata.obsm['object_stats_agg']
self.adata.obsm['object_stats_agg']