Read10Xdata: Read10Xdata

Read10XdataR Documentation

Read10Xdata

Description

Read expression matrix data from 10X. This function is modified from Seurat package.

Usage

Read10Xdata(
  data.dir = NULL,
  gene.column = 2,
  unique.features = TRUE,
  only.expr = TRUE
)

Arguments

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).

Value

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.


wguo-research/scCancer documentation built on May 26, 2024, 9:12 p.m.