50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

psSubpathway (version 0.1.3)

plotSubSEScurve: Plot subtype set sample enrichment score curve graph

Description

Draw a sample enrichment score curve graph of a single or all subtypes.

Usage

plotSubSEScurve(inputdata, spwid = "", phenotype = "all")

Value

a plot

an enrichment score curve graph

Arguments

inputdata

A list of result data generated by function `SubSEA` or `DCSA`.

spwid

The subpathway id which the user wants to plot.

phenotype

The `phenotype`` specifies which phenotypic phenotype set enrichment curve is drawn for subpathway. When `phenotype="all"` (default), the phenotype set enrichment score curve graph of subpathway under all phenotypes is drawn.

Author

Xudong Han, Junwei Han, Qingfei Kong

Details

plotSubSEScurve

Plot a phenotype set enrichment score curve graph of a subpathway under all phenotypes or specified phenotype, including the location of the maximum enrichment score (ES) and the leading-edge subset. This function can only be used for the results of the `SubSEA` function.

Examples

Run this code
# get the results of the SubSEA function for breast cancer subtypes.
Subspwresult<-get("Subspwresult")
# plot enrichment score curve of the subpathway 00120_9 in all breast cancer subtypes.
plotSubSEScurve(Subspwresult,spwid="00120_9",phenotype="all")
# plot enrichment score curve of the subpathway 00120_9 in the basal breast cancer subtypes.
plotSubSEScurve(Subspwresult,spwid="00120_9",phenotype="Basal")

Run the code above in your browser using DataLab