spillMat | R Documentation |
Retrieve or assign the spillover correction matrix for an xCell2Object.
Retrieve or assign the spillover correction matrix for an xCell2Object.
getSpillMat(object)
setSpillMat(object) <- value
## S4 method for signature 'xCell2Object'
getSpillMat(object)
## S4 replacement method for signature 'xCell2Object'
setSpillMat(object) <- value
object |
An xCell2Object. |
value |
A matrix of spillover correction factors (for the setter). |
For 'getSpillMat', a matrix of spillover correction factors. For 'setSpillMat<-', the updated xCell2Object.
For 'getSpillMat', a matrix of spillover correction factors. For 'setSpillMat<-', the updated xCell2Object.
xCell2Object-class
xCell2Object-class
data(DICE_demo.xCell2Ref, package = "xCell2")
spill_mat <- matrix(c(1, 0.1, 0.1, 1), nrow = 2, byrow = TRUE)
rownames(spill_mat) <- colnames(spill_mat) <- c("T_cells", "B_cells")
setSpillMat(DICE_demo.xCell2Ref) <- spill_mat
getSpillMat(DICE_demo.xCell2Ref)
data(DICE_demo.xCell2Ref, package = "xCell2")
spill_mat <- matrix(c(1, 0.05, 0.05, 1), nrow = 2, byrow = TRUE)
rownames(spill_mat) <- colnames(spill_mat) <- c("T_cells", "B_cells")
setSpillMat(DICE_demo.xCell2Ref) <- spill_mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.