Description Usage Arguments Examples
Calculate q-values (Storey 2003) from a p-value distribution with considerable amount of 1's
1 | get_qvalues_one_inflated(pvals)
|
pvals |
a numeric vector of p-values. |
1 2 3 4 5 6 7 8 9 10 | set.seed(1234)
pval = c(runif(100, 0, 0.1), runif(100,0, 1), rep(1, 100))
qval = get_qvalues_one_inflated(pval)
plot(sort(pval), sort(qval), xlim=c(0,1), ylim=c(0,1), type="l",
xlab="p-values", ylab="q-values")
qval_range = seq(0.001, 0.25, by=0.001)
plot(qval_range,
sapply(qval_range, function(x) sum(qval <= x, na.rm=TRUE)),
type="l",
xlab="q-value", ylab="number of significant genes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.