Skip to content

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

@hvbakel

Description

@hvbakel

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions