eBayes_auto_proportion | R Documentation |
limma::eBayes()
that sets the proportion
argument automatically.Limma's limma::eBayes()
function can calculate log-odds scores
(a.k.a. B statistics), which depend on an estimated proportion of
differentially expressed genes that the user specifies a priori.
Limma also provides methods for calculating this proportion via
limma::propTrueNull()
, and other packages also provide similar
functions. This function combines the two in order to set the
proportion automatically.
eBayes_auto_proportion(..., prop.method = "lfdr")
... |
All other arguments are passed to |
prop.method |
The method by which to calculate the proportion
of true null hypotheses (i.e. non-differentially expressed
genes). This can be a string to be used as the |
The B statistics produced when running limma::topTable()
on the
value returned by this function should be directly interpretable as
estimated log odds, as long as the distribituion of p-values is
well-behaved.
Note that if the p-value distribution is highly atypical, a proportion that is not between 0 and 1 could be estimated. If this happens, and error will be thrown.
See limma::eBayes()
.
#TODO Steal from eBayes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.