viewGSEA: Plot a figure of GSEA results for one gene set

Description Usage Arguments Details Author(s) See Also Examples

Description

This is a generic function.

When implemented as the S4 method for objects of class GSCA, this function plots a figure of the positions of the gene sets in the ranked gene list and the location of the enrichment score.

To use this function for objects of class GSCA:

viewGSEA(object, gscName, gsName)

Usage

1
viewGSEA(object, ...) 

Arguments

object

an object. When this function is implemented as the S4 method of class GSCA, this argument is an object of class GSCA.

...

other arguments. (see below for the arguments supported by class GSCA)

gscName:

a single character value specifying the name of the gene set collection where the gene set is

gsName:

a single character value specifying the name of the gene set to be plotted

Details

We suggest to print the names of top significant gene sets using the function getTopGeneSets before plotting the GSEA results.

Author(s)

Xin Wang xw264@cam.ac.uk

See Also

plotGSEA, gseaPlots

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(org.Dm.eg.db)
library(KEGG.db)
##load sample data
data("KcViab_GSCA")
##print summary of results
summarize(KcViab_GSCA, what="Result")
##print top significant gene sets in GO.BP
topPWKEGG<-getTopGeneSets(KcViab_GSCA, "GSEA.results", "PW_KEGG", allSig=TRUE)
##view a gene set
viewGSEA(KcViab_GSCA, "PW_KEGG", topPWKEGG[["PW_KEGG"]][1])

## End(Not run)

HTSanalyzeR documentation built on Oct. 31, 2019, 7:10 a.m.