r3fang / SnapATAC

Analysis Pipeline for Single Cell ATAC-seq
GNU General Public License v3.0
301 stars 125 forks source link

Filtering snap object directly by barcode #76

Closed vkartha closed 5 years ago

vkartha commented 5 years ago

Does the snap object not support direct indexing by barcode (i.e. columns?) What if I want to filter by some criteria other than the continuous variables listed under the subset.names argument in the filterCells function (i.e. fragment, UMI, dup.ratio etc.)? Say if I just have a list of pre-filtered barcodes that I want to subset and use downstream from an existing snap object?

When trying to index, I get the following error:

Error in match.arg(mat) : 'arg' should be one of "bmat", "pmat", "gmat"