Learn R Programming

WebGestaltR (version 0.1.1)

GOSlimSummary: Summary the gene list based on the GO (Gene Ontology) Slim data sets

Description

This function can summary the gene list based on the biological process, cellular component and molecular function ontologies of the GO Slim data sets. The summary result will be plotted as three bar plots and outputted to the PDF file.

Usage

GOSlimSummary(organism, genelist, outputFile, outputType, hostName)

Arguments

organism

Currently, GOSlimSummary supports 12 organisms. Users can use the function listOrganism to check the available organisms.

genelist

An R vector object containing a gene list. GOSlimSummary only supports NCBI EntrezGene ID for the summary. For other ID types, please first use IDMapping function to map to the EntrezGene ID.

outputFile

The output file name.

outputType

The output file extension that can be pdf, png, or bmp.

hostName

The server URL for accessing the data. User can use listArchiveURL function to get all archive version URL.

Value

GOSlimSummary function will return a high-resolution image containing the summary information of the uploaded gene list based on the biological process (red bar plot), cellular component (blue bar plot) and molecular function (green bar plot) ontologies.

Examples

Run this code
# NOT RUN {
geneFile<-system.file("extdata","GOSlimExample.txt",package="WebGestaltR")
geneList<-read.table(geneFile,header=FALSE,sep="\t",stringsAsFactors=FALSE)
geneList<-as.vector(as.matrix(geneList))
outputFile<-paste(getwd(),"/GOSlimSummary",sep="")
#GOSlimSummary(organism="hsapiens", genelist=geneList, 
#outputFile=outputFile, outputType="pdf")
# }

Run the code above in your browser using DataLab