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.

scVelo from Seurat object

See original GitHub issue

Hello,

Apologies if my questions sound trivial but I am completely new to python, and I am a biologist before being an occasional R user (so far… but hopefully will be able to play with python soon as well!). I would be interested in running scVelo on my data but I am not quite sure that I am doing the right things, and I am now feeling a little bit stuck.

  • I have run velocyto on my output from 10x (all cells classified as such by cellranger), which has successfully generated a loom file.
  • In parrallel, I have processed my data using Seurat, and I now have a filtered object, with only the group of cells I am interested in, which also contains clustering information, PCA and UMAP coordinates.

My first question is: is this the correct approach, or should velocyto be run on filtered data based on the cell barcodes that I am interested in only (ie filtered cells obtained at the end of my seurat analysis), or perhaps it doesn’t matter and this will be filtered within scVelo?

My second question is: how should I import the dimension reductions (PCA and UMAP), clusters information, and additional metadata (like sample name), into my scVelo object (adata)?

Any help would be much appreciated!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
VolkerBergencommented, Mar 3, 2020

Hi @Mevelo, as @ziyangliu93 said you’d definitely need to normalize your counts. These preprocessing steps are always needed

scv.pp.filter_and_normalize(adata, min_shared_counts=30, n_top_genes=2000)
scv.pp.moments(adata, n_pcs=30, n_neighbors=30)

In fact, if not done by the user already, norm. and moments are computed automatically before velocity estimation. So even if the user forgets about it, it will be processed correctly.

1reaction
VolkerBergencommented, May 20, 2020

scv.read understands the following formats: h5ad, loom, xlsx, csv, tsv, tab, data, txt, mtx, mtx.gz, soft.gz. rds is R-specific and needs to be converted to one of these, e.g. loom.

Also see here if you run into Seurat/Loom issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

scVelo on Seurat umap - Biostar
Hello,. Using scVelo, after you've computed velocities etc and it gives you your velocity plot. Is there a way to overlay the velocity...
Read more >
RNA velocity analysis with scVelo - Sam Morabito
In this tutorial, I will cover how to use the Python package scVelo to perform RNA ... assuming that you have some Seurat...
Read more >
satijalab/seurat-wrappers: docs/scvelo.Rmd - Rdrr.io
This vignette demonstrates analysing RNA Velocity quantifications stored in a Seurat object using scVelo. If you use scVelo in your work, please cite:....
Read more >
Getting Started with Seurat - Satija Lab
For new users of Seurat, we suggest starting with a guided walk through of a ... tricycle, Running estimate_cycle_position from tricycle on Seurat...
Read more >
RNA velocity analysis with scvelo - YouTube
RNA velocity analysis with scvelo in Jupyter notebook, Human lung fibroblasts, myofibroblasts, Seurat.
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