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

Key Error "base" in section "marker genes & annotation" #97

Closed
Mari123i opened this issue May 19, 2022 · 4 comments
Closed

Key Error "base" in section "marker genes & annotation" #97

Mari123i opened this issue May 19, 2022 · 4 comments

Comments

@Mari123i
Copy link

Mari123i commented May 19, 2022

Hello Malte,
I get the following issue in the Marker genes section:
This is my AnnData Object:
andata
And this is the error I get:
Anndata error base
I work with the tutorial dataset in case it is relevant, but had to skip few steps containing R code.

Greetings,
Mariam

Edit:
The adata.uns["log1p"] seems to be empty
Bild_2022-05-19_134147024

@LuckyMD
Copy link
Contributor

LuckyMD commented May 19, 2022

Hi @Mari123i,

Did you run sc.pp.log1p on the data at some point? Then this slot should exist. Also, which version of scanpy are you using?

@Mari123i
Copy link
Author

Hello,
Yes. I use 1.9.1. Its seems to be an error of saving it and loading it again

@LuckyMD
Copy link
Contributor

LuckyMD commented May 19, 2022

This seems to be a scanpy bug as you can see here and here. The latter issue suggests to just add the line:

adata.uns['log1p']["base"] = None after reading again, or downgrading to AnnData<0.8. Either way, this should be fixed soon by the maintenance team.

@Mari123i
Copy link
Author

It works! Thank you alot!

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