Slightly modified from Favour's function for OV project
Usage
calc_sumZscore(df, sig, topn = length(sig), botn = NA)
Arguments
- df
numeric dataframe (e.g gene expression df); rownames should contain name of genes/features in signature
- sig
vector/list of genes (if applicable, list should be ordered so enriched genes are at the top & de-enriched genes are at the bottom)
- topn
numeric; genes from top of signature to consider
- botn
numeric; genes from bottom of signature to consider