View source: R/panev.network.enrichment.R
panev.network.enrichment | R Documentation |
The function perform an enrichment analysis considering as backgroud the union of pathways investigated by PANEV for generate network result.The result help to interpret the PANEV output allowing to identify the pathways most strongly associated with the input list of genes.
panev.network.enrichment(in.file, out.file = "PANEV_enrich", species = NULL, FL = NULL, levels = 2)
in.file |
Name of input file (with extension) containing the gene list of interest. The file must contain three columns labelled as 'ensembl_gene_id', 'entrezgene' and 'external_gene_name', respectively. The file must rely in the working directory. The handy function |
out.file |
Name of the folder where the results will be stored and of the output diagram file (default = 'PANEV_enrich'). |
species |
The code of your species of interest. The correct code can get among the list of those available in KEGG with the handy function |
FL |
A list of pathways of first level to investigate. The list of all available pathways can get with the |
levels |
The number of levels of interactions (from 1 to n) investingated (default = 2). |
This function is based on keggList
and keggLink
functions of KEGGREST package (http://bioconductor.org/packages/release/bioc/html/KEGGREST.html.
The enrichment analysis is based on enrichment
function of bc3net package (https://cran.r-project.org/web/packages/bc3net/index.html.
A <out.file>_enrichment.txt file containing the results of functional enrichment analysis, based on a one-sided Fisher's exact test (hypergeometric test) and considering the PANEV network as a background.
Valentino Palombo (valentino.palombo@gmail.com)
Tenenbaum D (2017). KEGGREST: Client-side REST access to KEGG. R package version 1.16.1.
Simoes R de M, Emmert-Streib F (2012). Bagging statistical network inference from large-scale gene expression data. PLOS ONE; 7: e33624. doi:10.1371/journal.pone.0033624
##### EXAMPLES CODE ##### #Copy the example files in the current working directory panev.example() #Look for the organism code matching the search string list <- panev.biomartSpecies(string = "cow") biomart.species <- as.character(list[1,1]) # btaurus_gene_ensembl #Prepare PANEV input file using a gene list containing ensembl gene id. genelist_converted <- panev.dataPreparation(in.file = "ensembl_genelist.txt", gene_id = "ensembl", biomart.species = biomart.species) #Look for the specie code matching the search string list <- panev.speciesCode(string = "bos") species <- as.character(list[1,2]) # bta #Overview on input data panev.network.enrichment(in.file = in.file, out.file = out.file, species = species, FL = FL, levels = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.