Closed ccshao closed 3 years ago
Would you mind sharing with me the versions of seaborn
and matplotlib
? It seemingly has something to do with the latest version of seaborn
.
See the following package detials. I feel that the first one in groups is ignored, in the above case the first one is "WT_IP".
~ $ conda list (env_stream)
matplotlib-base 3.3.3 py37h4f6019d_0 conda-forge
seaborn 0.11.0 ha770c72_1 conda-forge
seaborn-base 0.11.0 pyhd8ed1ab_1 conda-forge
I have noticed that latest version of seaborn
indeed caused some weird issues. Can you first try to downgrade seaborn
to 0.10.1
?
If it doesn't solve the problem, can you share with me the coordinates of cells by saving them as a .tsv
file? happy to take a look.
import pandas as pd
pd.concat([adata.obs['label'],pd.DataFrame(index=adata.obs_names,data=adata.obsm['X_dr'])],axis=1).to_csv('coord.tsv',sep='\t')
You are right with seaborn, the earlier version fixed the issue. Many thanks for the quick guides!
Here is a small but wired issue about legend text. The data set has three groups, which is correctly coloured, but one label in the legend is missing, only 2 are shown instead of 3.