CombineResults: CombineResults - For all cell types merge the gsea leading...

View source: R/enrichment_analysis.r

CombineResultsR Documentation

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

Description

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

## Not run: 
combined_results = CombineResults(gsealist = testgsea, contrastlist = testmod, gseafdr = 0.05,genefdr = 0.2)

## End(Not run)

MattPM/scglmmr documentation built on April 26, 2024, 12:55 a.m.