Learn R Programming

CePa (version 0.8.1)

plot.cepa: Plot the cepa object

Description

Plot the cepa object

Usage

# S3 method for cepa
plot(x, type = c("graph", "null"), ...)

Value

if type is set to "graph", the function will return a igraph object or a graphML object of the pathway. Else it is NULL.

Arguments

x

a cepa object

type

identify the type for the plot

...

arguments passed to plotGraph

Author

Zuguang Gu <z.gu@dkfz.de>

Details

The function is wrapper of plotGraph and plotNull. If type is specified to "graph", the graph of the network will be plotted (see plotGraph for details). If type is specified to "null", the null distribution of the pathway score in the pathway will be plotted (see plotNull for details).

See Also

cepa, plotNull, plotGraph

Examples

Run this code
if (FALSE) {

data(PID.db)

# ORA extension
data(gene.list)
# will spend about 20 min
res.ora = cepa(dif = gene.list$dif, bk = gene.list$bk, pc = PID.db$NCI, id = 2)
plot(res.ora)
plot(res.ora, type = "null")

# GSA extension
# P53_symbol.gct and P53_cls can be downloaded from
# http://mcube.nju.edu.cn/jwang/lab/soft/cepa/
eset = read.gct("P53_symbol.gct")
label = read.cls("P53.cls", treatment="MUT", control="WT")
# will spend about 45 min
res.gsa = cepa(mat = eset, label = label, pc = PID.db$NCI, id = 2)
plot(res.gsa, type = "null")
}

Run the code above in your browser using DataLab