This function is to calculate the median of gene expressions for genes in the given gene sets.
median_expression(Data, pathway.db)
Matrix of average gene expression in each gene set with rows corresponding to gene sets and columns corresponding to samples will be returned.
Data matrix of gene expressions with gene ensembl ID as row names and columns corresponding to different samples.
A list of gene sets.
Within the ssdGSA function, when GSA_method = "median.exprs", this function is used to calculate the average of gene expressions for genes in the given gene sets.