Description Usage Arguments Value
counts2lFC
calculates log2FoldChange from counts.
1 2 3 4 5 6 7 8 9 | counts2lFC(
countData,
colData,
condition,
ref,
type = "apeglm",
apeAdapt = FALSE,
...
)
|
countData |
a matrix of counts. |
colData |
a data.frame with at least a single column. Rows of colData correspond to columns of countData. |
condition |
the formula expresses how the counts for each gene depend on the variables in colData. The comparisons will be based on the alphabetical order of the levels by default. You can also specify the reference level by ref parameter |
ref |
specifying the reference level |
type |
shrinkage estimator, default is "apeglm", the adaptive t prior shrinkage estimator from the 'apeglm' package. |
apeAdapt |
logical, should apeglm use the MLE estimates of LFC to adapt the prior, or use default. |
... |
refer to DESeq2::lfcShrink() for more detailed parameters. |
resLFC a dataframe contains log2FoldChange.
# Please note this is a downsampling of the original data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.