decoupler.assign_groups

decoupler.assign_groups(summary)

Assigns group labels based on summary activities. The maximum positive value is used for assigment.

Parameters
summaryDataFrame

Dataframe with summaried actvities per group

Returns
annot_dictdict

Dictionary with the group that had the maximum positive activity.