-
Notifications
You must be signed in to change notification settings - Fork 102
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
Problems with figures generated by scv.pl.velocity_graph(adata) #996
Comments
In fact, I had the same problem.
|
It works! Thanks. |
Dear author, thanks for your help! |
@adamgayoso @WeilerP just an FYI this is still an open issue. The is a workaround that involved patching the package, but it's incomplete (e.g. doesn't work with |
The latest versions of matplotlib break the velocity_graph method. Downgrading to matplotlib==3.5.3 fixes this issue for me. Until this compatibility issue is fixed, I would suggest adding version constraints to the requirements.txt file, or at least put a list of tested versions in the README file. This would also be relevant for versions of numpy and pandas that are currently incompatible with scvelo. |
Fixed by #1162. |
Discussed in #995
Originally posted by ETAOIK February 1, 2023
Hi, I am new to scVelo application and I have some problems during studying the tutorial 'Velocity graph and pseudotime' in https://scvelo.readthedocs.io/en/stable/VelocityBasics/,
In my output, cell-to-cell transitions didn't overlap with the umap clusters plot like following(Fig.1),
scv.pl.velocity_graph(adata,threshold=0.2)
only set arrows=True could made it like the following(Fig.2), and in this situation edges_on_top=None didn't works
also, the the velocity graph generated by scv.pl.velocity_graph(adata) is quite small and the legend is quite big(Fig.3)
x, y = scv.utils.get_cell_transitions(adata, basis='umap', starting_cell=70)
ax = scv.pl.velocity_graph(adata, c='lightgrey', edge_width=.05, show=False)
ax = scv.pl.scatter(adata, x=x, y=y, s=120, c='ascending', cmap='gnuplot', ax=ax)
My question is how to deal with it. Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: