Open beyondpie opened 3 months ago
SnapATAC2 requires csr matrix to be in the canonical form in order to get predictable performance. Please apply this function to ann.X
before passing it to snapatac2.AnnData
: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.sort_indices.html#scipy.sparse.csr_matrix.sort_indices
@kaizhang Thanks!
obs
is under different type: the former one is kind of Polar DataFrame, while the latter one is pandas.DataFrame.
Thanks! Songpeng
Hi Kai,
I have an anndata.AnnData, I can generate the snapatac2.AnnData as followed
When I perform subset function, it has Error: "RuntimeError: cannot read csr matrix: Minor indices are not monotonically increasing within each lane."
I think this might be a bug when transforming anndata.AnnData to snapatac2.AnnData.
Thanks! Songpeng