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.

Issues running velocyto

See original GitHub issue

Hi, I am trying to run velocyto using run10x command. I’m running on cluster by requesting 60 GB memory. Do I need more memory for that? Thank you so much for your help.

initial position. 2019-04-29 20:09:26,261 - DEBUG - 2745314 reads were skipped because no apropiate cell or umi barcode was found 2019-04-29 20:09:26,262 - INFO - Now just waiting that the bam sorting process terminates Traceback (most recent call last): File “/home/mrr2006/.conda/envs/velocyto/bin/velocyto”, line 11, in <module> sys.exit(cli()) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/click/core.py”, line 722, in call return self.main(*args, **kwargs) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/click/core.py”, line 697, in main rv = self.invoke(ctx) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/click/core.py”, line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/click/core.py”, line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/click/core.py”, line 535, in invoke return callback(*args, **kwargs) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/velocyto/commands/run10x.py”, line 115, in run10x samtools_memory=samtools_memory, dump=dump, loom_numeric_dtype=dtype, verbose=verbose, additional_ca=additional_ca) File “/home/mrr2006/.conda/envs/velocyto/lib/python3.6/site-packages/velocyto/commands/_run.py”, line 225, in _run Otherwise sort manually by samtools sort -l [compression] -m [mb_to_use]M -t [tagname] -O BAM -@ [threads_to_use] -o cellsorted_[bamfile] [bamfile]") MemoryError: bam file #0 could not be sorted by cells. This is probably related to an old version of samtools, please install samtools >= 1.6. In alternative this could be a memory error, try to set the --samtools_memory option to a value compatible with your system. Otherwise sort manually by samtools sort -l [compression] -m [mb_to_use]M -t [tagname] -O BAM -@ [threads_to_use] -o cellsorted_[bamfile] [bamfile]

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

8reactions
saeedfccommented, Oct 23, 2019

Had same problem. Solved this way. Ran samtools first to get the cellsorted_possorted.genome_bam.bam file. And then ran velocyto. In the velocyto documentation, it says “If the file cellsorted_[ORIGINALBAMNAME] exists, the sorting procedure will be skipped and the file present will be used.”

(base) u0119129@gbw-d-l0099:~$ samtools sort -t CB -O BAM -o/mnt/DATA2/RAW_DATA/Re_Run_\ 2018_Data_with_updated_reference_genome/KUL-1-1000cells/outs/cellsorted_possorted_genome_bam.bam /mnt/DATA2/RAW_DATA/Re_Run_\ 2018_Data_with_updated_reference_genome/KUL-1-1000cells/outs/possorted_genome_bam.bam

(base) u0119129@gbw-d-l0099:~$ velocyto run10x -m /mnt/DATA1/Velocyto/alltracks_mask.gtf /mnt/DATA2/RAW_DATA/Re_Run_\ 2018_Data_with_updated_reference_genome/KUL-1-1000cells /mnt/DATA1/Velocyto/refdata-cellranger-mm10-3.0.0/genes/genes.gtf

Hope it helps

0reactions
denvercal1234GitHubcommented, Nov 20, 2021

@saeedfc – When you manually sort your bam first, did you then need to use the original bam.bai (index) file that came with the cellranger count? Or, did you have to index your cellsorted_possorted…bam file? If so, how did you index it? — Issue #321

# like this? or any options?
samtools index sample.sorted.bam
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues running velocyto #163 - GitHub
Hi,. I am trying to run velocyto using both run and run10x command. I get the same error in each case. It looks...
Read more >
Welcome to velocyto.py!
Welcome to velocyto.py!¶. Velocyto is a library for the analysis of RNA velocity. Velocyto includes a command line tool and an analysis pipeline....
Read more >
Velocyto for smart seq2 taking an excessively long time (and ...
I'm trying to run velocyto with the run-smartseq2 command on about 1500 bam files from alignment with subread-align . The problem is, the...
Read more >
Setup and Install Velocyto | Winuthayanon Lab - WSU Labs
To run VeloCyto, you will need Python >=3.6.0 (we have no plans to support python<=3.5). ... If there are issues with conda try...
Read more >
velocyto-team/velocyto.R: README.md - Rdrr.io
The easiest way to install velocyto.R is using devtools::install_github() from R: library(devtools) install_github("velocyto-team/velocyto.R").
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