Single-node subnetworks always score 0. Otherwise the raw score is zsum / sqrt(n), optionally calibrated against the Monte-Carlo distribution and optionally penalized for size.

.score_subnetwork(sc, n, zsum, normalize)

Arguments

sc

A score context from build_score_context().

n

Number of nodes in the subnetwork.

zsum

Sum of the z-scores of the subnetwork nodes.

normalize

Logical; whether to calibrate the score.

Value

A numeric score.