R/utility.R
annotate_term_genes.Rd
Function to annotate the involved affected (input) genes in each term.
annotate_term_genes(
result_df,
input_processed,
genes_by_term = pathfindR.data::kegg_genes
)
data frame of enrichment results. The only must-have column is 'ID'.
input data processed via input_processing
List that contains genes for each gene set. Names of this list are gene set IDs (default = kegg_genes)
The original data frame with two additional columns:
the up-regulated genes in the input involved in the given term's gene set, comma-separated
the down-regulated genes in the input involved in the given term's gene set, comma-separated