scVelo on Seurat umap
2
1
Entering edit mode
3.9 years ago
V ▴ 380

Hello,

Using scVelo, after you've computed velocities etc and it gives you your velocity plot. Is there a way to overlay the velocity plots onto the embedding of the UMAP you obtain from your Seurat analysis?

Thanks

Seurat scVelo RNA • 11k views
ADD COMMENT
4
Entering edit mode
ADD REPLY
1
Entering edit mode
ADD REPLY
0
Entering edit mode

Thank you. Is the best way to output from Seurat the ‘asLoom’ command? I’ve tried various ways and getting different errors that’s why I resulted to re-analysing from scratch and then wanted to embed it.

ADD REPLY
1
Entering edit mode
2.6 years ago
Badran ▴ 70

There is also this guide from Seurat, which shows you how to do the pre-processing in R and velocity analysis in python using Jupyter notebooks (also possible using Rstudio).

The key point here is that you convert the Seurat object to an h5seurat object, which is then converted to an h5ad object; this h5ad object is what is then loaded into python to project RNA velocity on Seurat's UMAP embeddings. DON'T try to convert a Seurat object using as.loom() because the function will inevitably fail since the Seurat object does not contain the necessary information to create the loom file (the loom file is generated with information about spliced and unspliced counts, which the Seurat object does not normally contain).

ADD COMMENT
0
Entering edit mode
19 months ago
ZhangHao • 0

You can use the RunSCVELO function in SCP(https://github.com/zhanghao-njmu/SCP)

library(SCP)
data("pancreas1k")
pancreas1k <- RunSCVELO(srt = pancreas1k, group_by = "SubCellType", liner_reduction = "PCA", nonliner_reduction = "UMAP", return_seurat = TRUE)
ClassDimPlot(pancreas1k, group.by = "SubCellType", reduction = "UMAP", pt.size = NA, velocity = "stochastic")
ClassDimPlot(pancreas1k, group.by = "SubCellType", reduction = "UMAP", pt.size = 5, pt.alpha = 0.2, velocity = "stochastic", velocity_plot_type = "stream")
ADD COMMENT

Login before adding your answer.

Traffic: 2424 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6