Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with pegasus.calc_kBET #271

Open
hl-xue opened this issue May 31, 2023 · 0 comments
Open

Error with pegasus.calc_kBET #271

hl-xue opened this issue May 31, 2023 · 0 comments

Comments

@hl-xue
Copy link

hl-xue commented May 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant