Read10Xdata | R Documentation |
Read expression matrix data from 10X. This function is modified from Seurat package.
Read10Xdata(
data.dir = NULL,
gene.column = 2,
unique.features = TRUE,
only.expr = TRUE
)
data.dir |
Directory containing the matrix.mtx, genes.tsv (or features.tsv), and barcodes.tsv files provided by 10X. A vector or named vector can be given in order to load several data directories. If a named vector is given, the cell barcode names will be prefixed with the name. |
gene.column |
An integer indicating which column of genes.tsv or features.tsv to use for gene names; default is 2. |
unique.features |
Make feature names unique (default TRUE). |
only.expr |
Whether to read expression data only if have multiple features (default TRUE). |
If the 10X data only has expression data or the argument 'only.expr' is TRUE, a sparse matrix containing the expression data will be returned. Otherwise, if the 10X data has multiple data types, a list containing a sparse matrix of the data from each type will be returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.