Useful for only keeping cell associated molecules for example.

filter_molecules(molecule_file, output_file, bcs_to_keep)

Arguments

molecule_file

path molecule.tsv.gz flatfile produced by scrunchy pipeline

output_file

output file name, will be compressed by default.

bcs_to_keep

character vector of barcode sequences to keep in output