Closed cartal closed 3 years ago
Can you show us the values of combined_bbknn.obs['scNym']
?
Also, if you create a conda environment, does your problems still occur? I'm wondering if some dependencies like pandas
could be out of date.
Hi,
Thanks for the quick reply!
I'm attaching the output for combined_bbknn.obs['scNym']
:
.
This is really weird. When I tested it on my macbook I created a new environment and the problem persisted. However, there I downgraded to scanpy==1.6
as well, the problem persisted, but the NA
s weren't there.
Do you know how that entry could have been filled with NaN
?
The plots and errors you were showing above are consistent with all the values being "null".
The only issue I can think of was when I was creating the object. Before I used to transfer the adata.obs
dataframe to a new one by doing adata_new.obs = adata_old.obs
. When I did this in scanpy==1.7.1
the transfer didnÄt show any errors, but it didn't copy. This was fixed when I added the .copy()
to that command.
When I ran the same thing on a macbook pro, the labels somehow disappeared after calculating highly variable genes.
I have been using this notebook since scanpy==1.6
and it didn't give me any problems until I upgraded to scanpy==1.7.1
.
Could you come up with the minimum amount of commands you'd need to run to reproduce this? It would also be helpful if this could be done using generated or publicly available data. Something like this would be great.
Just checking back on this, it's concerning if you are getting null values unexpectedly, but it's difficult for me to figure out why that could be happening without more information. It would be great if you're able to give us any update on this.
Hi,
Yes, I will do it. Please bear with me while I make it.
@cartal this seems like a merge/concat gone wrong and indexes got messed up. happens to me a lot. I'm gonna close this because as @ivirshup mentioned the problem is proabbly due to some anndata operation rather than the plotting itself. feel free to reopen this or open a new issue in case this is still a problem.
I think this was somehow related, yes. After making an new anndata
the problem was resolved.
Thank you guys
Hi
I'm trying to do a standard analysis of cells with
scanpy?
; however, I'm having a weird issue with plotting the results.For instance, I get the following error when I try to visualise the cell states on my data:
As you can see, the labels are there, but somehow the colours do not make it to the UMAP. When I look for a specific subpopulation, it seems that it finds it, but somehow it doesn't display it.
I checked if there was something odd with the labels, but they are there.
They even have assigned colours:
Then I tried to plot some markers using the dotplot function, but then I got this error:
and this figure:
I have tried this in a MacOS and two Linux machines with the same error. I have downgraded to
scanpy==1.6
and the error seems to persist.Any help would be appreciated.