subset | R Documentation |
This can be used to extract a subset of a 'BASiCS_Chain' object. The subset can contain specific genes, cells or MCMC iterations
## S4 method for signature 'BASiCS_Chain'
subset(x, Genes = NULL, Cells = NULL, Iterations = NULL)
x |
A |
Genes , Cells |
A vector of characters, logical values, or numbers, indicating which cells or genes will be extracted. |
Iterations |
Numeric vector of positive integers indicating which MCMC
iterations will be extracted. The maximum value in |
An object of class BASiCS_Chain
.
Catalina A. Vallejos cnvallej@uc.cl
data(ChainSC)
# Extracts 3 first genes
ChainSC1 <- subset(ChainSC, Genes = rownames(ChainSC)[1:3])
# Extracts 3 first cells
ChainSC2 <- subset(ChainSC, Cells = colnames(ChainSC)[1:3])
# Extracts 10 first iterations
ChainSC3 <- subset(ChainSC, Iterations = 1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.