limma_pcor | R Documentation |
Test partial correlation of each row of an object to a phenotype vector given covariates. The
approach here is to estimate the residuals of regressing each of object
and phenotype
on cbind(1, covariates)
, and then to test the correlation of the residuals, with the appropriate
degrees of freedom.
limma_pcor(
object,
phenotype,
covariates,
fam = "gaussian",
reorder.rows = TRUE,
prefix = NULL,
adjust.method = "BH",
check.names = TRUE,
cols = c("t", "P.Value")
)
object |
Matrix-like data object containing log-ratios or log-expression values, with rows corresponding to features (e.g. genes) and columns to samples. Must have row names that are non-duplicated and non-empty. |
phenotype |
Numeric vector of sample characteristics (e.g. phenotypes or treatments).
Should be same length as |
covariates |
Numeric vector with one element per sample or matrix-like object with rows corresponding to samples and columns to covariates to be adjusted for. |
fam |
Character string of family to use in generalized linear model of |
reorder.rows |
Logical, should rows be reordered by p-value? |
prefix |
Character string to add to beginning of column names. |
adjust.method |
Method used to adjust the p-values for multiple testing. Options, in increasing conservatism,
include |
check.names |
Logical; should |
cols |
Columns of |
covariates
should not include the regression intercept, but when called from hitman,
it should include the exposure.
Estimating the residuals corresponding to object
is analogous to
removeBatchEffect, and several lines of code are adapted from that function.
Data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.