jsxlei / SCALEX

Online single-cell data integration through projecting heterogeneous datasets into a common cell-embedding space
BSD 3-Clause "New" or "Revised" License
72 stars 18 forks source link

fix: stop SingleCellDataset.__getitem_() from trying to use "toarray"… #19

Closed milescsmith closed 1 year ago

milescsmith commented 1 year ago

… on ndarrays.

Cannot rely on the X member of an anndata object as being sparse; if loading an already processed object, the X member is most likely a numpy.ndarray, which is not sparse and does not have a .toarray() method.