The weighted connectivity score (WTCS) represents a non-parametric, similarity measure based on the weighted Kolmogorov-Smirnov enrichment statistic (ES) described previously (Subramanian et al., 2005). WTCS is a composite, bi-directional version of ES. For a given query gene set pair (qup, qdown) and a reference signature r, WTCS is computed as follows: