lilab-bcb / pegasus

A tool for analyzing trascriptomes of millions of single cells.
https://pegasus.readthedocs.io
BSD 3-Clause "New" or "Revised" License
81 stars 21 forks source link

Buffer dtype mismatch when running de_analysis on AnnData object from scanpy (with testcase) #312

Open hvbakel opened 3 months ago

hvbakel commented 3 months ago

I am using the infer_cell_types function in pegasus to annotate cell types within an AnnData object generated by Scanpy. This works fine for some objects, but for others the de_analysis function fails with the following error: ValueError: Buffer dtype mismatch, expected 'const float' but got 'double'

I have provided a testcase (conda yaml environment file, test script, and anndata object) that reproduces this error at: https://vanbah01.u.hpc.mssm.edu/pegasus-testcase_2024-07-31.tar.gz

Any help in resolving this issue would be much appreciated!