How to fix MemoryError (f" bam file #{k} could not be sorted by cells. \n\ in run10x and run?
See original GitHub issueHi there,
I encountered issue with “Out of memory” when I run10x in velocyto. Looking at the .err file returned from the server cluster, i had issues shown below.
MemoryError (f" bam file #{k} could not be sorted by cells. \n\ in run10x
It further says the error is probably related to an old version of samtools, please install samtools >= 1.6 but I checked and samtools version 1.10 was used.
It says to set the --samtools_memory option to a value compatible with my system. Otherwise sort mannually by samtools
sort -l [compression] -m [mb_to_use]M -t [tagname] -O BAM -@ [threads_to_use] -o cellsorted_[bamfile] [bamfile]
Anyone has any suggestion how to fix this error?
Thank you so much!
Commands I had in my sh script to run on our server cluster:
Issue Analytics
- State:
- Created 2 years ago
- Comments:13
Top Results From Across the Web
Learning the BAM format
A BAM file is just a SAM file but stored in binary format; you should always convert your SAM files into BAM format...
Read more >CLI Usage Guide — velocyto 0.17.16 documentation
The bam file outputted by dropEst does not contain error-corrected but raw cell barcodes so we will have to make a new corrected...
Read more >Introduction to SAM and BAM files - EPI2ME Labs
This tutorial aims to elucidate the information stored with a SAM and BAM files, and how such files can be read, or parsed,...
Read more >使用velocyto进行bam转loom吐血踩坑记录 - 腾讯云
The sorting step will be skipped and the existing file will be used. ... run Runs the velocity analysis outputting a loom file...
Read more >the BAM input file, 'sample.bam', doesn't have a valid EOF block.
I 've been trying to use RSubread to count alignments for a RNA-seq course. To get the .bam aligned and mapped file I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can’t help with the GTF file - I don’T even know how you managed to edit it 😮
Thank you all.
I finally got it to generate loom file. I think there were two main issues with the run10x:
I wish everyone the best of luck! I managed to get it to generate a loom file, but when I examined the error log, it said “Could not retrieve index file for the cellsorted_possorted_genome_bam.bam.” – See issue #321
Any thoughts @cdiaz45 @AAA-3?