Description Usage Arguments Value Author(s) Examples
Summarizes the univariate relationships between genes in one or more
signatures and several phenotype variables, as summarized in
epheno
objects (which can be created with the
ExpressionPhenoTest
function).
By default barplotSignifSignatures
performs a binomial test
(binom.test
from package stats
) for each signature
to see if the number of up up regulated and down regulated genes is
different enough to be statistically different.
When a reference gene set is provided we test if the proportions of up
and down regulated genes of each gene set is different from the
proportions in the reference gene set. This has been done with a
chi-square test.
When a reference gene set is provided and parameter
testUpDown
is TRUE
(by default its FALSE
)
the number of genes corresponding to up and down regulated are
compared with those of the reference gene set separately.
1 2 3 4 5 | barplotSignatures(x, signatures, referenceSignature, alpha=.05,
p.adjust.method='none', ylab, cex.text=1, ...)
barplotSignifSignatures(x, signatures, referenceSignature, testUpDown=FALSE,
simulate.p.value = FALSE, B = 10^4, p.adjust.method='none', alpha=.05,
ylab, ylim=ylim, cex.text=1, ...)
|
x |
|
signatures |
List with each element corresponding to a
signature. The gene names in each signature must match those in
|
referenceSignature |
If specified, the average fold change in each
signature is compared to the average fold change in the signature
|
testUpDown |
If set to |
cex.text |
Character expansion for the text indicating the P-values. Ignored if referenceSignature is missing. |
alpha |
Confidence levels for barplot error bars. |
p.adjust.method |
P-value adjustment method, passed on to
|
simulate.p.value |
A logical indicating whether chi-square p-values
should be computed by Monte Carlo simulation (passed on to |
B |
Integer specifying the number of replicates in the Monte Carlo
simulation (passed on to |
ylab |
y-axis labels |
ylim |
y-axis limits |
... |
Other arguments to be passed on to boxplot. |
When a single signature is provided as input, a single plot assessing the association of that signature with all phenotype variables is created. If several signatures are provided, one separate plot is created for each phenotype variable.
Evarist Planet
1 2 3 4 5 6 7 8 9 10 11 | #create epheno
data(epheno)
#construct two signatures
sign1 <- sample(featureNames(epheno))[1:20]
sign2 <- sample(featureNames(epheno))[1:15]
mySignature <- list(sign1,sign2)
names(mySignature) <- c('My first signature','My preferred signature')
#plot
barplotSignifSignatures(epheno[,'Relapse'],mySignature,alpha=0.05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.