Description Usage Arguments Value Author(s) See Also Examples
Extract genes by row and cells by column from a bcbioSingleCell
object.
1 2 |
x |
object from which to extract element(s) or in which to replace element(s). |
i |
indices specifying elements to extract or replace. Indices are
For When indexing arrays by An index value of |
j |
indices specifying elements to extract or replace. Indices are
For When indexing arrays by An index value of |
... |
Additional arguments. |
drop |
For matrices and arrays. If |
bcbioSingleCell
.
Michael Steinbaugh
help("[", "base")
.
selectSamples()
for subsetting based on sample metadata.
Other S4 Object: bcbioSingleCell
,
coerce
, show
,
updateObject
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # bcbioSingleCell ====
cells <- head(colnames(indrops_small), 100L)
head(cells)
genes <- head(rownames(indrops_small), 100L)
head(genes)
# Subset by cell identifiers
indrops_small[, cells]
# Subset by genes
indrops_small[genes, ]
# Subset by both genes and cells
indrops_small[genes, cells]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.