mcfrith / last-rna

MIT License
48 stars 6 forks source link

'std::bad_alloc' #8

Open heliziii opened 3 years ago

heliziii commented 3 years ago

Hi, I was trying to run tandem_genotypes on HG01891 Pacbio long reads of chromosome 1. Based on the website, first I aligned long reads to the reference genome using LAST. I ran lastdb -P8 -uNEAR mydb genome.fa on my reference genome and then I ran last-train -P8 -Q0 mydb myseq.fq > myseq.par to generate .par file. These two steps finished successfully.

However when I run lastal -P8 -p myseq.par mydb myseq.fq | last-split > myseq.maf, I'll get terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc terminate called recursively terminate called recursively terminate called recursively

This error is not really informative and I have no idea what is causing that. I would appreciate your help.

mcfrith commented 3 years ago

Thanks for this clear problem report. I think it means lastal is running out of memory. I'm not sure of the best solution, but here are some recommendations, in roughly descending order:

Some of these involve re-running lastdb: but it's not necessary to re-run last-train.