decoupler.run_consensus

decoupler.run_consensus(res)

Consensus.

Computes a consensus score after running different methods with decouple. For each method, the obtained activities are transformed into z-scores, first for positive values and then for negative ones. These two sets of z-score transformed activities are computed by subsetting the values bigger or lower than 0, then by mirroring the selected values into their opposite sign and finally calculating a classic z-score. This transformation ensures that values across methods are comparable, and that they remain in their original sign (active or inactive). The final consensus score is the mean across different methods.

Parameters:
resdict

Results from decouple.

Returns:
estimateDataFrame

Consensus scores.

pvalsDataFrame

Obtained p-values.