DiltheyLab / MetaMaps

Long-read metagenomic analysis
Other
98 stars 23 forks source link

Running problems of metamaps: Assertion `statsStream.is_open()' failed. #68

Closed wangqi0000 closed 1 year ago

wangqi0000 commented 1 year ago

Hi everyone and thank you for the time you'll spend reading this issue. There is a problem when running metamaps and I don't know how to solve it. The command, generated files, and errors are shown below.

Command used:

metamaps mapDirectly --all -r ../databases/miniSeq+H/DB.fa -q /fs/ess/PCON0022/qiuqinwu/wangqi/pbsim/simulated_data/multiple-species/Multiple_lr_4.fastq -o classification_results_4 --maxmemory 250
metamaps classify --mappings classification_results_4 --DB ../databases/miniSeq+H

Files generated using above command: image

Error: metamaps: src/meta/fEM.h:402: std::map<std::__cxx11::basic_string, long unsigned int> meta::getMappingStats(std::__cxx11::string): Assertion `statsStream.is_open()' failed. /var/spool/slurmd/job12902838/slurm_script: line 17: 166525 Aborted (core dumped) metamaps classify --mappings classification_results_5 --DB ../databases/miniSeq+H

AlexanderDilthey commented 1 year ago

Hi @wangqi0000,

This error occurs when the file classification_results_4.meta is not present. This is generated automatically at the end of the mapping process, so perhaps mapping did not complete successfully in your case?

I have added an improved error message that makes more clear what the underlying error is.

Best wishes

Alex