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

webiste and cdplt.scatter_gene problems #17

Open
Jingle0814 opened this issue Nov 21, 2023 · 1 comment
Open

webiste and cdplt.scatter_gene problems #17

Jingle0814 opened this issue Nov 21, 2023 · 1 comment

Comments

@Jingle0814
Copy link

Dear CellDancer team,
First, The website of CellDancer (https://guangyuwanglab2021.github.io/cellDancer_website/index.html#) couldn't display completely when I logged on, so I asked the IT staff that there was a problem with the website. Can you solve it?

image
Second, following the instructions I ran into an error when I want to visual the gene velocity :
gene_list=['GATA1','KLF1','EKLF','CEBPB','ID3','EBF1','RUNX2']

ncols=5

height=math.ceil(len(gene_list)/5)*4

fig = plt.figure(figsize=(20,height))

for i in range(len(gene_list)):
ax = fig.add_subplot(math.ceil(len(gene_list)/ncols), ncols, i+1)
cdplt.scatter_gene(
ax=ax,x='splice',y='unsplice',
cellDancer_df=cellDancer_df,
custom_xlim=None,
custom_ylim=None,
colors=colormap.colormap_erythroid,
alpha=0.5,
s = 5,
velocity=True,
gene=gene_list[i])
ax.set_title(gene_list[i])
ax.axis('off')
plt.show()
And I encountered:
Traceback (most recent call last):
File "", line 12, in
File "
/miniconda3/envs/cellDancer/lib/python3.7/site-packages/celldancer/plotting/gene.py", line 126, in scatter_gene
edgecolor="none")
File "/miniconda3/envs/cellDancer/lib/python3.7/site-packages/matplotlib/init.py", line 1414, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "
/miniconda3/envs/cellDancer/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 4388, in scatter
get_next_color_func=self._get_patches_for_fill.get_next_color)
File "
/miniconda3/envs/cellDancer/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 4226, in _parse_scatter_color_args
raise invalid_shape_exception(c.size, xsize) from err
ValueError: 'c' argument has 4895 elements, which is inconsistent with 'x' and 'y' with size 0.

@Abclisy
Copy link
Member

Abclisy commented Dec 12, 2023

hello, looks like it's displaying in the appropriate format right now. Is it displaying correctly on your side? Thank you!

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