-
Notifications
You must be signed in to change notification settings - Fork 475
TypeError when trying to add known marker genes #76
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
Comments
Messing around with things, I seem to have found a workaround. Instead of calling:
If I call:
Things now work as expected. I am still not really sure what is going on, but I am guessing it's something to do with updated package versions. If anyone has any insight or a better solution than adding |
Hi @oligomyeggo , I'm afraid I can't give you more insight there on pandas updates. But maybe you would get a better answer on the scanpy github? |
Hi @LuckyMD, no problem! I'll ask over on the scanpy github. Thank you! |
Hi, I am also running into this issue. Did you find a solution? |
If you report the whole error traceback, it would be easier to assess. |
It appears to be the same as this issue: scverse/scanpy#2008 |
Great, then it's being looked into. Just to leave this here for anyone else having this issue... a temporary solution is to downgrade to pandas <1.3 |
Hello, I am working through your latest iteration of single cell tutorial and having issues plotting gene expression of known marker gene expression profiles. I made a dictionary of
marker_genes
, and used the following code for each of my marker gene groups:This worked without issue, but when I attempted to plot
sc.pl.umap(adata, color=['celltypeA_marker_expr', 'celltypeB_marker_expr'])
, I received the following error:I looked at each step of the code above, and the sizes of everything are correct with respect to my data (right number of genes, right number of cells). When I tried to inspect
adata.obs['celltypeA_marker_expr']
, I got this error:I am not sure what's going on, especially since I have been able to use this process on several analysis workflows before. The only thing that I can think of is that maybe something changed with the scanpy version? I am currently using scanpy v1.8.1 (and pandas v1.3.2). My last successful iteration of using the above code was scanpy v1.7.1 (and pandas v1.2.4).
The text was updated successfully, but these errors were encountered: