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 when using adata object #108

Open
ThomasThaewel opened this issue Aug 16, 2021 · 3 comments
Open

Error when using adata object #108

ThomasThaewel opened this issue Aug 16, 2021 · 3 comments

Comments

@ThomasThaewel
Copy link

Hi,
I was trying to run scaden with an adata object (dense matrix) and used a txt file with the samples as columns and genes as rows for the bulk data. However if I try to run scaden process .... I get the Error:
IndexError: arrays used as indices must be of integer (or boolean) type.
This does not really make sense to me as the Bulk data example also uses genes as "Index" and therefore is not using integers. Does someone have an idea how to solve this?
Thank you

@KevinMenden
Copy link
Owner

Hi @PronatorT ,

sorry for the late reply. Quick question - how die you generate the adata object, with Scaden?

@ThomasThaewel
Copy link
Author

No not with scaden itself, I used scanpy to generate the adata object. I was not aware of scaden being able to generate anndata objects.

@KevinMenden
Copy link
Owner

Okay, it's best to create the training data with Scaden as well. Have a look at the scaden simulate function.
Scaden uses the anndata library internally - but it's just the safest way to get the formatting right :)

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

2 participants