activateMatrix | R Documentation |
Sets and extracts the active (default) matrix name of a MolecularAssay
.
activateMatrix(
object,
mtr_name,
assay_name = activeAssay(object),
verbose = NULL
)
activeMatrix(object, assay_name = activeAssay(object))
object |
An object of class |
mtr_name |
Character value. The name of the matrix to activate as the default matrix. |
assay_name |
Only relevant if the |
verbose |
Logical. If (Warning messages will always be printed.) |
activateMatrix(): Updated SPATA2
object.
activeMatrix(): Character value. Name of the currently active matrix in the respective assay.
getMatrix()
, getMatrixNames()
library(SPATA2)
library(ggplot2)
data("example_data")
object <- example_data$object_UKF275T_diet
object <- normalizeCounts(object, mtr_name = "LogNormalize")
p1 <- plotSurface(object, color_by = "METRN") + labs(subtitle = activeMatrix(object))
object <- activateMatrix(object, mtr_name = "LogNormalize")
p2 <- plotSurface(object, color_by = "METRN") + labs(subtitle = activeMatrix(object))
plot(p1)
plot(p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.