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 using h5ad file #78

Closed
jddavies95 opened this issue Nov 24, 2022 · 2 comments
Closed

Error using h5ad file #78

jddavies95 opened this issue Nov 24, 2022 · 2 comments

Comments

@jddavies95
Copy link

Hey, I keep getting this error about the object not having the attribute 'loc'. I am using a h5ad file of unnormalized, filtered data exported from scanpy. Do you know what may be causing this? Thanks!

2022-11-23T16:57:41.248186372Z Traceback (most recent call last):
2022-11-23T16:57:41.248381225Z File "/opt/conda/bin/solo", line 33, in
2022-11-23T16:57:41.249388349Z sys.exit(load_entry_point('solo-sc', 'console_scripts', 'solo')())
2022-11-23T16:57:41.249686579Z File "/opt/solo/solo/solo.py", line 319, in main
2022-11-23T16:57:41.249926121Z doublet_score = softmax_predictions.loc[:, "doublet"]
2022-11-23T16:57:41.252468271Z AttributeError: 'numpy.ndarray' object has no attribute 'loc'

@davek44
Copy link
Collaborator

davek44 commented Dec 4, 2022

Hi, it's confusing for softmax_predictions to be an ndarray rather than a pandas dataframe. You can see here scVI SOLO predict returns a dataframe here: https://github.com/scverse/scvi-tools/blob/main/scvi/external/solo/_model.py#L392. Can you use the python debugger and try to figure out where softmax_predictions becomes an array for you?

@njbernstein
Copy link
Contributor

njbernstein commented Oct 4, 2023

@davek44 close this one too cause we didn't get a follow up?

@davek44 davek44 closed this as completed Oct 4, 2023
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

3 participants