| SplitRW | R Documentation |
Splits a multi-block into a replicate-wise (RW) structure by expanding each block along its batch dimension. Each batch within each original block becomes a separate block in the output, enabling replicate-wise ComDim analysis.
SplitRW(
MB = MB,
checkSampleCorrespondence = FALSE,
batchNormalisation = TRUE,
showSampleCorrespondence = TRUE
)
MB |
A |
checkSampleCorrespondence |
Logical. If |
batchNormalisation |
Logical. If |
showSampleCorrespondence |
Logical. If |
Output block names follow the convention <original_block> when the original block has
only one batch, or <original_block>_<batch_label> when it has multiple batches.
The Metadata slot of each source block is also split and carried over to the
corresponding replicate blocks. If the MultiBlock has no Batch information at all,
the original object is returned unchanged with a warning.
A MultiBlock object in which each block corresponds to one batch of one
original data block (a replicate-wise structure ready for ComDim_PCA or
similar).
MultiBlock, ComDim_PCA, SelectFeaturesRW
b1 <- matrix(rnorm(1500), 30, 50)
b2 <- matrix(rnorm(2400), 30, 80)
batch_b <- c(rep(1, 10), rep(2, 10), rep(3, 10))
# Generate the multi-block (mb) with 3 batches of 10 samples each
mb <- MultiBlock(
Data = list(b1 = b1, b2 = b2),
Batch = list(b1 = batch_b, b2 = batch_b),
ignore.names = TRUE
)
rw <- SplitRW(mb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.