If I read a file with read_h5ad() and then process with
sc.pp.filter_genes(adata, min_cells=int(foo))
Things work as intended.
But if I change that read line to be read_h5ad(h5_path, backed='r') then when I attempt to filter I get this error instead:
File "/opt/Python-3.7.3/lib/python3.7/site-packages/scanpy/preprocessing/_simple.py", line 228, in filter_genes:
else X > 0, axis=0):
TypeError: '>' not supported between instances of 'SparseDataset' and 'int'
If I read a file with read_h5ad() and then process with
sc.pp.filter_genes(adata, min_cells=int(foo))Things work as intended.
But if I change that read line to be read_h5ad(h5_path, backed='r') then when I attempt to filter I get this error instead: