question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discordance between arrows in different velocity embeddings.

See original GitHub issue

I started experimenting with scVelo and got some interesting results but also noticed some discordance between the different velocity embeddings.

Result of scv.pl.velocity_embedding: velocity_embedding

Result of scv.pl.velocity_embedding_grid: velocity_embedding_grid

Result of scv.pl.velocity_embedding_stream: velocity_embedding_stream

Out of those 3 the grid representation seems a little off, inverting many of the thick arrows in the green and blue clusters.

Additionally, the arrows in the PAGA plot don’t seem to correspond very well either: paga_compare

sc.pl.paga_compare(
  adata, basis = "umap", threshold = .15, arrowsize = 10,
  edge_width_scale = .5, transitions = "transitions_confidence",
  dashed_edges = "connectivities"
)

Did I misunderstand the output of these representations?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
VolkerBergencommented, Apr 8, 2019

If I understand correctly, the discordance only arises when running scanpy’s preprocessing steps without running scvelo’s pp steps.

It’d be important to normalize the spliced/unspliced count data, which is not done within the scanpy pp pipeline. That would be running scv.pp.filter_and_normalize() after all your pp steps, which then only touches your spliced/unspliced counts and leaves adata.X as is when already processed.

0reactions
romanhaacommented, Apr 8, 2019

Ok, that makes sense. I’ll close this thread then, no further questions for now 😃

Thanks again and great work! I like the dpi option for plotting. Would be useful also in the scanpy plot APIs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNA Velocity Analysis (In Situ) - Tutorial and Tips
For example, the directional flow of the velocity arrows between cell clusters should be consistent in the PCA and tSNE representations.
Read more >
Preprocessing choices affect RNA velocity results for ... - PLOS
We show that there are substantial differences between the quantifications obtained from different tools, and identify typical genes for ...
Read more >
understanding and interpreting RNA velocity estimates - bioRxiv
RNA velocity analysis of single cells promises to predict temporal dynamics from gene expression. Indeed, in many systems, ...
Read more >
Preprocessing choices affect RNA velocity results for ... - NCBI
In order to compare the velocity embeddings across methods, we calculate a ... The same is true for the difference between the alevin ......
Read more >
RNA Velocity: The Cell's Internal Compass | by Jamshaid Shahir
Taking the difference between the future mRNA expression and the current ... RNA Velocity of cells undergoing neurogenesis in PCA embedding ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found