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

plot_auc does not work #122

Open
asmlgkj opened this issue Jun 14, 2024 · 0 comments
Open

plot_auc does not work #122

asmlgkj opened this issue Jun 14, 2024 · 0 comments

Comments

@asmlgkj
Copy link

asmlgkj commented Jun 14, 2024

print(df_all_genes)

score	is_training	sparsity_sp	sparsity_sc	sparsity_diff

snap25 0.998232 False 0.000000 0.014610 -0.014610
gapdh 0.998188 False 0.000000 0.000968 -0.000968
ppia 0.998170 True 0.000000 0.000092 -0.000092
calm1 0.997935 False 0.000000 0.000369 -0.000369
calm2 0.997775 False 0.000000 0.001751 -0.001751
... ... ... ... ... ...
clec12a 0.000015 False 0.996914 0.998848 -0.001934
sntn 0.000015 False 0.996914 0.999493 -0.002579
prr32 0.000014 False 0.993827 0.999263 -0.005435
ms4a4c 0.000013 False 0.993827 0.999401 -0.005574
grifin 0.000012 False 0.996914 0.998986 -0.002072

tg.plot_auc(df_all_genes)

TypeError Traceback (most recent call last)
Cell In[92], line 1
----> 1 tg.plot_auc(df_all_genes)

File ~/micromamba/envs/spatialdata/lib/python3.10/site-packages/tangram/plot_utils.py:679, in plot_auc(df_all_genes, test_genes)
676 plt.figure(figsize=(6, 5))
678 plt.plot(pol_xs, pol_ys, c='r')
--> 679 sns.scatterplot(xs, ys, alpha=0.5, edgecolors='face')
681 plt.xlim([0.0, 1.0])
682 plt.ylim([0.0, 1.0])

TypeError: scatterplot() takes from 0 to 1 positional arguments but 2 were given

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

1 participant