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

The plot of RNA velocity has no arrows #22

Open
zcaiwei opened this issue Dec 22, 2023 · 5 comments
Open

The plot of RNA velocity has no arrows #22

zcaiwei opened this issue Dec 22, 2023 · 5 comments

Comments

@zcaiwei
Copy link

zcaiwei commented Dec 22, 2023

Hi,
I'm having another problem when plotting RNA velocity.
The following is my command:

cellDancer_df=cd.compute_cell_velocity(cellDancer_df=cellDancer_df, projection_neighbor_choice='gene', expression_scale='power10', projection_neighbor_size=5, speed_up=(100,100))
fig, ax = plt.subplots(figsize=(10,10))
cdplt.scatter_cell(ax,
                   cellDancer_df,
                   colors=color_dict,
                   alpha=0.5,
                   s=30,
                   velocity=True,
                   legend='on',
                   min_mass=15,
                   arrow_grid=(20,20),
                   )
ax.axis('off')
plt.show()

This is my plot of RNA velocity:
RNA_velocity_without_arrows
We can see the plot has no arrows. So I checked the velocity1 values of cellDancer_df, and I found some data rows(3268 rows × 17 columns) have values, the following are my data without NaN:
nonan_plot

Can you tell me how to adjust the parameters to get the arrows in the RNA velocity plot?

@xiao00su
Copy link

try
projection_neighbor_choice='embedding',

@zcaiwei
Copy link
Author

zcaiwei commented Dec 24, 2023

Thanks for your reply! I used this command
cellDancer_df=cd.compute_cell_velocity(cellDancer_df=cellDancer_df, projection_neighbor_choice='embedding', expression_scale='power10', projection_neighbor_size=5, speed_up=(100,100))
but the plot I got still has no arrows:
RNA_velocity_plot_noarrows

@Abclisy
Copy link
Member

Abclisy commented Jan 2, 2024

Hello zcaiwei, thank you for reaching out!
Is it possible for you to try to decrease the parameter min_mass when plotting? If you have any other questions, please feel free to contact us.

min_mass (optional, float (default: 2)) – Filter by using the isotropic gaussian kernel to display the arrow on grids. The lower the min_mass, the more arrows.

@zcaiwei
Copy link
Author

zcaiwei commented Jan 3, 2024

Hello zcaiwei, thank you for reaching out! Is it possible for you to try to decrease the parameter min_mass when plotting? If you have any other questions, please feel free to contact us.

min_mass (optional, float (default: 2)) – Filter by using the isotropic gaussian kernel to display the arrow on grids. The lower the min_mass, the more arrows.

Thanks for your reply! I tried to lower the parameter min_ mass, for example, I set 2, 1, 0.1, 0.01, 0.001, but there are still no arrows in the cell velocity plot. Can you tell me what's wrong?

@Abclisy
Copy link
Member

Abclisy commented Mar 15, 2024

Hello, could you change it to 0 and see what happens? 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

3 participants