Load data from different sources
readData( data, type = c("10X", "10X_h5", "expMatrix", "SingleCellExperiment", "Seurat", "CellDataSet", "loom"), meta.data = NULL, species )
data | Can be a directory like "/outs/filtered_gene_bc_matrices/" provided by 10X. Or an expression matrix of single-cell RNA-seq (matrix or dgCMatrix). Or an object from R/python packages such as scater, scran, Seurat, monocle. |
---|---|
type | 10X, 10X_h5, expMatrix, SingleCellExperiment, Seurat, CellDataSet, loom |
meta.data | Additional cell-level metadata to add to the Seurat object. Should be a data frame where the rows are cell names and the columns are additional metadata fields. |
species | Species name, such as Homo sapiens or Mus musculus. |
Seurat object
if (FALSE) { SeuratObj <- CellFunMap::readData(data = "~/outs/filtered_gene_bc_matrices/GRCh38/", type = "10X", species = "Homo sapiens") SeuratObj <- CellFunMap::readData(data = counts, type = 'expMatrix', species = "Homo sapiens") }