Read count matrix from 10X CellRanger hdf5 file. This can be used to read both scATAC-seq and scRNA-seq matrices.
Read10X_h5(filename, use.names = TRUE, unique.features = TRUE)
Path to h5 file
Label row names with feature names rather than ID numbers.
Make feature names unique (default TRUE)
Returns a sparse matrix with rows and columns labeled. If multiple genomes are present, returns a list of sparse matrices (one per genome).