Learn R Programming

CePa (version 0.8.1)

plotNull: Plot the null distribution of the pathway score

Description

Plot the null distribution of the pathway score

Usage

plotNull(x)

Arguments

x

a cepa object

Author

Zuguang Gu <z.gu@dkfz.de>

Details

There are two figures in the plotting.

  • A) Distribution of node score in the pathway under simulation. Since a pathway contains a list of nodes. The distribution of node score for the pathway in each simulation is measures by maximum value, the 75th quantile, median value and minimum value. The distribution of node score for the pathway in the real data is highlighted.

  • B) Histogram of simulated pathway scores.

The function is always called through plot.cepa.all and plot.cepa.

See Also

cepa, plot.cepa

Examples

Run this code
if (FALSE) {
data(PID.db)

# ORA extension
data(gene.list)
# will spend about 20 min
res.ora = cepa.all(dif = gene.list$dif, bk = gene.list$bk, pc = PID.db$NCI)
ora = get.cepa(res.ora, id = 5, cen = 3)
plotNull(ora)

# 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.all(mat = eset, label = label, pc = PID.db$NCI)
gsa = get.cepa(res.gsa, id = 5, cen = 3)
plotNull(gsa)
}

Run the code above in your browser using DataLab