We use the Spearman's rank correlation for the calculation which is calculated as the Pearsons correlation on the ranks. For the genesets, we take the average relative log expression for the genes in the genesets as geneset expression value. Notice that p-value are not computed in this module. We could technically do that (computing p-value for correlation) but it would slow down the module considerably. For more traditional geneset enrichment and p-value, the user should use the geneset enrichment module under the "Enrichment" menu.