MAvalues | R Documentation |
The function MAvalues
will create MA values as input for the function
MAplot
and hoeffDValues
.
M
and A
are specified relative to specified samples which
is determined by the group
argument. In case of group == "all"
,
all samples (expect the specified one) are taken for the reference
calculation. In case of group != "all"
will use the samples belonging
to the same group given in colnames(colData(se))
expect the
specified one.
MAvalues(se, log2 = TRUE, group = c("all", colnames(colData(se))))
se |
|
log2 |
|
group |
|
tbl
with columns Feature
, name
(sample name),
A
, M
and additional columns of colData(se)
## create se
set.seed(1)
a <- matrix(rnorm(10000), nrow = 1000, ncol = 10,
dimnames = list(seq_len(1000), paste("sample", seq_len(10))))
a[c(1, 5, 8), seq_len(5)] <- NA
cD <- data.frame(name = colnames(a), type = c(rep("1", 5), rep("2", 5)))
rD <- data.frame(spectra = rownames(a))
se <- SummarizedExperiment(assay = a, rowData = rD, colData = cD)
MAvalues(se, log = FALSE, group = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.