View source: R/withinBatchFit.R
withinBatchFit | R Documentation |
withinBatchFit
fits the model model
to each row of feature abundances
(in the assay matrix specified with assay
) of x
. This allows to perform
a per-batch-separate estimation of injection order dependent signal drifts.
withinBatchFit(
x,
batch = x$batch,
assay = "norm",
model = y ~ injection_idx,
method = "lmrob",
minVals = 6,
log.transform = TRUE
)
x |
|
batch |
|
assay |
|
model |
model formula describing the model that should be fitted to the data within each batch. |
method |
|
minVals |
|
log.transform |
|
list
of length equal to the number of batches (levels of batch
)
each representing the model fits for one batch. res[[1]]
is thus the
result for the first batch and is a list
of fitted models, one for
each feature.
Johannes Rainer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.