View source: R/path_enrichmentscore.R
path_enrichmentscore | R Documentation |
Calculates pathway enrichment score of the pathways linked to significant metabolites
path_enrichmentscore(
met_path,
sig_metabolite_kegg_id,
ls_path,
refmet_class,
sps,
padj,
kegg_comp_path = FALSE
)
met_path |
dataframe of pathways mapped to significant metabolites as obtained from met_pathways |
sig_metabolite_kegg_id |
dataframe of significantly altered metabolites for HG calculation |
ls_path |
list of all the KEGG compounds linked to pathways. This can be obtained by running comp_linkedto_pathways().R or is also available please use ls_path when you want to calculate HG score depending on all the compounds in KEGG linked to a pathway sysdata.rda |
refmet_class |
dataframe of metabolite data with refmet class for a study, alternatively, data obtained from rest can also be given here which is yet not associated to refmet class We need this to get the number of all the metabolites detected in the study for calculating HG score. |
sps |
species name |
padj |
Method for p value adjustment, i.e. "fdr" |
kegg_comp_path |
TRUE or FALSE depending you want to use the ls_path as your background. Default is FALSE, where background set is the total metabolite in a study |
kegg_es = path_enrichmentscore(met_path,sig_metabolite_kegg_id, ls_path,refmet_class,sps='hsa',padj='fdr')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.