Description Usage Arguments Details Value Examples
A ContigCellDB pretend to be a cell_tbl data.frame in several regards.
This is to enable nesting ContigCellDB objects in the colData of a SingleCellExperiment
and so that various plotting functionality in scater can do something sensible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## S4 method for signature 'ContigCellDB,character,missing'
x[[i, j, ...]]
## S4 method for signature 'ContigCellDB,ANY,missing,ANY'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'ContigCellDB'
dim(x)
## S4 method for signature 'ContigCellDB'
dimnames(x)
## S4 method for signature 'ContigCellDB'
nrow(x)
## S4 method for signature 'ContigCellDB'
ncol(x)
|
x |
|
i |
integer or character index |
j |
ignored |
... |
ignored |
drop |
ignored |
If x a ContigCellDB, then dim(x) and dimnames(x) return dim(x$cell_tbl) and dimnames(x$cell_tbl), respectively, and x[[col]] returns x$cell_tbl[[col]].
Likewise indexing with x[i,] returns cells indexed by i.
Finally as.data.frame(x) returns x$cell_tbl.
See details.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.