Skip to content

Error with pegasus.calc_kBET #271

@hl-xue

Description

@hl-xue

Hello,

I encountered an error while using pegasus.calc_kBET.
My function call is like:

pg.calc_kBET(data, attr="batch", rep="pca_harmony", random_state=0)

where my data.obs["batch"] is category type with character strings.
The error was:

Traceback (most recent call last):
...
File "...lib/python3.9/site-packages/pegasus/tools/nearest_neighbors.py", line 409, in calc_kBET
    attr_values.categories = range(nbatch)
AttributeError: can't set attribute

Do you have any idea about this please?

Thanks.

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