Perform Enrichment Analyses on the Input Subnetworks
enrichment_analyses(snws, input_genes, gene_sets = "KEGG",
custom_genes = NULL, custom_pathways = NULL, pin_path,
adj_method = "bonferroni", enrichment_threshold = 0.05,
list_active_snw_genes = FALSE)
a list of subnetwork genes (i.e., vectors of genes for each subnetwork)
vector of input gene symbols (that were used during active subnetwork genes)
the gene sets used for enrichment analysis. Available gene sets are KEGG, Reactome, BioCarta, GO-All, GO-BP, GO-CC, GO-MF or Custom. If "Custom", the arguments custom_genes and custom pathways must be specified. (Default = "KEGG")
a list containing the genes involved in each custom pathway. Each element is a vector of gene symbols located in the given pathway. Names correspond to the ID of the pathway.
A list containing the descriptions for each custom pathway. Names of the list correspond to the ID of the pathway.
path to the Protein Interaction Network (PIN) file used in the analysis
correction method to be used for adjusting p-values of pathway enrichment results (Default: 'bonferroni', see ?p.adjust)
threshold used when filtering individual iterations' pathway enrichment results
boolean value indicating whether or not to report the non-DEG active subnetwork genes for the active subnetwork which was enriched for the given pathway with the lowest p value (default = FALSE)
a dataframe of combined enrichment results. Columns are:
KEGG ID of the enriched pathway
Description of the enriched pathway
Fold enrichment value for the enriched pathway
p value of enrichment
adjusted p value of enrichment
the non-DEG active subnetwork genes, comma-separated
enrichment
for the enrichment analysis for a single gene set
# NOT RUN {
enr_res <- enrichment_analyses(snws, input_genes = my_input$GENE,
gene_sets = "KEGG", pin_path = "path/to/PIN")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab