Hi
When I run velocity using both 'dynamical' and 'stochastic' modes:
import scvelo as scv
import scanpy as sc
scv.pp.moments(adata)
scv.tl.velocity(adata, mode='stochastic')
scv.tl.velocity_graph(adata)
scv.pl.velocity_embedding_stream(adata, basis='umap',
arrow_size = 1,
density = 2,
size = 50,
arrow_style = '->',
color = 'leiden_r1',
alpha = 0.2,
dpi = 300,
legend_loc = 'on data',
integration_direction = 'both',
arrow_color = 'k',
figsize = (6,6))
scv.tl.recover_dynamics(adata)
scv.tl.velocity(adata, mode='dynamical')
scv.tl.velocity_graph(adata)
scv.pl.velocity_embedding_stream(adata, basis="umap",
arrow_size = 1,
density = 2,
size = 50,
arrow_style = '->',
color = 'leiden_r1',
alpha = 0.2,
dpi = 300,
legend_loc = 'on data',
integration_direction = 'both',
arrow_color = 'k',
figsize = (6,6))
Why the arrow directions are opposite in 'dynamical' and 'stochastic' modes? Which one is correct?
Thanks a lot
Hello Dan. I also run this analysis. May I know the command you run to get the loom file? I got error when try velocyto.
Thank you. Seem you already have the loom file. I am trying to get it with velocyto. This is the command I ran:
ERROR - This is an older version of cellranger, cannot check if the output are ready, make sure of this yourself. ERROR - Can not locate the barcodes.tsv file!
line 91, in run10x.
bcfile = bcmatches[0].
IndexError: list index out of range.
I think you should use this command:
velocyto run10x -m Hg38_rmsk.gtf WT /cellranger/reference/refdata-cellranger-GRCh38-3.0.0/genes/genes.gtf
you should use the root directory ofcellranger count
, not theouts
subdirectory.I tried it and got the same error unfortunately.
you should use the root directory of
cellranger count
, not theouts
subdirectory.I also tried to unzip the
barcodes.tsv.gz
file or added the full path to theWT
folder. After upload the bam file and rename topossorted_genome_bam.bam
, I got:FileNotFoundError: [Errno 2] No such file or directory: 'samtools': 'samtools' My data is multiome, not single cell.