lme_cor | R Documentation |
Linear Mixed Effect Models with random variable
lme_cor(
MAE,
tax_level,
feature,
exp_var,
random_var,
datatype = c("logcpm", "relabu", "counts"),
tolerance
)
MAE |
A multi-assay experiment object |
tax_level |
The classification level used for feature |
feature |
A given feature from count data, which should be correlated with variable |
random_var |
Random variable, which should be taken into account for correlation, eg. 'Location' or 'batch effect'. |
datatype |
Select datatype, like relative abundance (relabu), counts, or logcpm |
tolerance |
Tolerance of dispersion for correlation adjustment |
variable |
Numeric variable for correlation, eg. 'weight' |
A plotly object, a ggplot object for pdf saving, and a table with statistics
data_dir = system.file('inst/extdata/NWS_MAG_Profiling.rds', package = 'QuickFixR')
df <- readRDS(data_dir)
p <- lme_cor(df,
tax_level='Genus',
feature = 'Mycoplasma'
variable='Weight_g',
random_var="Location",
datatype = "relabu")
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.