Read the counts output from into a sparse matrix.
Given a 10X output path,
Read in the the output files from 10X CellRanger. Specifically, path
should be be a directory containing the raw count output from 10X
CellRnager with output files barcodes.tsv
genes.tsv
matrix.mtx
, or
if using CellRanger v2, or barcodes.tsv.gz
features.tsv.gz
matrix.mtx.gz
if using CellRanger v3. When reading in the barcodes
and gene names, duplicates are removed with the make.unique function.
The separator is specified by sep
by default.