scoreRankings(r1, r2, nn, bases, two.sided=TRUE)
r1
and r2
must have the same length.TRUE
both ends of the lists are taken into account, only
top ranks are considered otherwise.$$score := sum_(R=1)^n exp(-alpha R) * overlap(L1[1:R],L2[1:R])$$
where $n$ is the maximal rank to be considered and $L1/L2$ denote the sorted lists to be compared. In this score, each gene contributes from the first rank where it is in the overlap up to $n$. For gene i:
$$score_i = sum_(R=max(r1[i],r2[i])^n exp(-alpha R))$$
where $r1/r2$ are the ranks of genes in $L1/L2$. Since this is a finite geometric series, it can be used to speed up computation of our score:
$$score_i = (exp(-alpha min(r1[i],r2[i])) - exp(-alpha n))/(1 - exp(-alpha))$$
$$score = sum_(i|r1[i] Analogue computations are performed by scoreRankings
for list
begins and list ends.
shuffledRandomScores
,compareLists