Learn R Programming

dhga (version 0.1)

HubPlot: Venn plot of hub genes under two conditions namely stress and control

Description

The function produces a venn diagram of number of hub genes and unique hub genes under two conditions

Usage

HubPlot(pvalue.stress, pvalue.control, alpha)

Arguments

pvalue.stress
pvalue.stress is a vector of p-values for genes in the GCN under stress condition. pvalue.stress can be obtained from the output of hub.stress function.
pvalue.control
pvalue.control is a vector of p-values for genes in the GCN under normal or control condition. pvalue.control can be obtained from the output of hub.control function.
alpha
alpha is a scalar representing statistical level of significance. Default is alpha=0.0001

Value

Examples

Run this code
data(rice_salt)
pval.stres <- pvalue.hub(rice_salt, beta=6, m=18, s=80, plot=FALSE)
pvalue.stress <- pval.stres[, 2]

data(rice_normal)
pval.control <- pvalue.hub(rice_normal, beta=6, m=18, s=80, plot=FALSE)
pvalue.control <- pval.control[, 2]
HubPlot(pvalue.stress, pvalue.control, alpha=0.0001)

Run the code above in your browser using DataLab