extract | R Documentation |
Extract genes by row and samples by column.
## S4 method for signature 'bcbioRNASeq,ANY,ANY,ANY'
x[i, j, recalculate = TRUE, drop = FALSE]
x |
Object. |
i |
Indices specifying elements to extract or replace. Indices are For more information: help(topic = "Extract", package = "base") |
j |
Indices specifying elements to extract or replace. Indices are For more information: help(topic = "Extract", package = "base") |
recalculate |
|
drop |
For matrices and arrays. If |
Internal count transformations are rescaled automatically, if defined. DESeq2
transformations will only be updated when recalculate = TRUE
.
bcbioRNASeq
.
Updated 2024-03-27.
Michael Steinbaugh, Lorena Pantano
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
## bcbioRNASeq ====
data(bcb)
object <- bcb
## Minimum of 100 genes, 2 samples.
genes <- head(rownames(object), 100L)
head(genes)
samples <- head(colnames(object), 2L)
head(samples)
## Extract by sample name.
object[, samples]
## Extract by gene list.
object[genes, ]
## Extract by both genes and samples.
x <- object[genes, samples]
print(x)
## Fast subsetting, by skipping DESeq2 recalculations.
## Note that `normalized`, `rlog`, and `vst` assays will be removed.
x <- object[, samples, recalculate = FALSE]
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.