.combineEnrich {diffEnrich}R Documentation

.combineEnrich

Description

This is a helper function for diffEnrich. This function takes the objects generated from pathEnrich. If performing a dfferential enrichment analysis, the user will have 2 objects. There will be one for list1 and one for list2(see example for pathEnrich). This function then merges the two data frames using the following columns that should be present in both objects (by = c("KEGG_PATHWAY_ID", "KEGG_PATHWAY_description", "KEGG_PATHWAY_cnt", "KEGG_DATABASE_cnt")). This merged data frame will be used as the input for the differential enrichment function. Any pathways that do not contain any genes from either gene list will be removed.

Usage

.combineEnrich(list1_pe, list2_pe)

Arguments

list1_pe

object of class pathEnrich generated from pathEnrich. See example for pathEnrich.

list2_pe

object of class pathEnrich generated from pathEnrich. See example for pathEnrich.

Value

combined_enrich: An object of class data.frame that is the result of merging list1_pe and list2_pe, using the default joining implemented in the base merge function.


[Package diffEnrich version 0.1.2 Index]