decoupler.summarize_acts

decoupler.summarize_acts(acts, groupby, obs=None, mode='mean', min_std=1.0)

Summarizes activities obtained per group by their mean or median and removes features that do not change across samples.

Parameters:
actsAnnData or DataFrame

Activities obtained after running a method.

groupbystr

Column name of obs to use for grouping.

obsDataFrame

None or a data-frame with sample meta-data.

modestr

Wheter to use mean or median to summarize.

min_stdfloat

Minimum std to filter out features. Only features with enough variability will be returned. Decrease it to return more features.

Returns:
summaryDataFrame

Dataframe with summaried actvities per group.