Compute the pairwise contrast score between two groups of developmental stages.
pair_score(txi, modules, alternative = c("greater", "less"))A numeric value representing the pairwise contrast score
Numeric vector of transcriptomic index values
A named list with elements 'contrast1' and 'contrast2' containing stage indices for each contrast group
Character string specifying the alternative hypothesis: "greater" or "less"
The score is computed as mean(contrast1) - mean(contrast2). For alternative = "less", the score is negated. # Compute pairwise score # modules <- list(contrast1 = 1:3, contrast2 = 7:9) # score <- pair_score(txi_values, modules, "greater")