Skip to contents

CombineResults - For all cell types merge the gsea leading edge genes with their contrast model coefficieint and p value from limma / dream

Usage

CombineResults(gsealist, contrastlist, gseafdr, gseap = NULL, genefdr = Inf)

Arguments

gsealist

list of results returned by `RunFgseaOnRankList()`

contrastlist

list of results returned by `scglmmr::ExtractResult()` or from older versions of scglmmr, the equivalent results from: `GetContrastResults()` , `GetContrastResultsRaw()`

gseafdr

the adjusted p value threshold to filter out results (gsea)

gseap

the p value threshold to filter out results (gsea); gseafdr must not be specified to use this option

genefdr

the adjusted p value threshold to filter out individual genes - by default all the leading edge genes are returned (recommended)

Value

a tidy dataframe

Examples

if (FALSE) {
combined_results = CombineResults(gsealist = testgsea, contrastlist = testmod, gseafdr = 0.05,genefdr = 0.2)
}