Load a counts matrix from various file formats including 10X outputs, tab-delimited text files, or h5ad files.
Value
A list containing:
counts: Sparse matrix (cells x genes)
cell_names: Character vector of cell barcodes
gene_names: Character vector of gene names
Examples
if (FALSE) { # \dontrun{
data <- load_counts("path/to/matrix.mtx.gz")
dim(data$counts)
} # }