how to generate an scRNA counts file
I use the DropletUtils package from Bioconductor. Getting counts begins like this:

library(DropletUtils)
filePath &lt;- "path_to_data/raw_feature_bc_matrix/"
singleCellExperiment &lt;- read10xCounts(filePath, col.names = TRUE)