Description Usage Arguments Value
The TENxGenomics class provides a simple interface to subset and input 10xGenomics' 1M_neurons_filtered_gene_bc_matrices_h5.h5 file. Subsetting is a light-weight operation; input (typically of the subset matrix) is as a dense matrix and hence consumes memory.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | TENxGenomics(h5path, group = "mm10")
## S4 method for signature 'TENxGenomics'
dim(x)
## S4 method for signature 'TENxGenomics'
dimnames(x)
## S4 method for signature 'TENxGenomics,ANY,ANY,ANY'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'TENxGenomics'
show(object)
## S3 method for class 'TENxGenomics'
as.matrix(x, ..., withDimnames = TRUE)
as.dgCMatrix(x, ..., withDimnames = TRUE)
|
h5path |
character(1) file path to a 1M_neurons_*.h5 file. |
group |
character(1) hdf5 group (e.g., “mm10”) containing scRNA-seq data. |
x |
A |
i |
integer(), numeric(), character(), or logical() index into
rows of |
j |
integer(), numeric(), character(), or logical() index into
columns of |
... |
Additional arguments, ignored. |
drop |
logical(1) TRUE only. |
object |
A |
withDimnames |
logical(1) Include dimnames on returned matrix? |
TENxGenomics()
returns a TENxGenomics-class
instance.
as.matrix(tenx)
and as(tenx, "matrix")
return
a matrix with dim and dimnames equal to tenx
, and values
the read counts overlapping corresponding genes and
samples. Use as.matrix(withDimnames=FALSE)
to suppress
dimnames on the returned matrix. NOTE: consider the size of the
matrix, prod(as.numeric(dim(tenx)))
before invoking this
function.
as.dgCMatrix(tenx)
and as(tenx, "dgCMatrix")
return a sparse matrix (from the Matrix package) with dim and
dimnames equal to tenx
, and values the read counts
overlapping corresponding genes and samples. Use
as.matrix(withDimnames=FALSE)
to suppress dimnames on
the returned matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.