sparseMatrix will be read from disk, filtered, and then written to disk.

filter_matrix(matrix_path, barcodes_path, output_path,
  strip_10x_suffix = TRUE)

Arguments

matrix_path

path to directory with mtx matrix

barcodes_path

path to barcodes.tsv.gz file generated by 10x count

output_path

path for output files. matrix.mtx.gz, barcodes.tsv.gz and features.tsv.gz will be generated at the supplied path

strip_10x_suffix

if TRUE, remove 10x suffix from barcodes read from barcodes_path (default = TRUE)