DiltheyLab / MetaMaps

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

Running Classify module then throw 'boost::wrapexcept<std::logic_error>' and 'core dump' #45

Open yipukangda opened 3 years ago

yipukangda commented 3 years ago

After finishing mapDirectly, then I try to continue classify step with the code:

metamaps classify --mappings ./metamap_classification_results --DB ./database/metamap_ecoli_homos/ecoli_homosp

And get error as showing below:

terminate called after throwing an instance of 'boost::wrapexcept<std::logic_error>'
what():  Attempt to access an uninitialized boost::match_results<> class.
[1]    26696 abort (core dumped)

the DB I used is Human+ecoli genome constructed as manual page.

In addition, during the mapDirectly step, the DB loading time is very long(about 30min) which main are human chr loading to mem, I do not know if it is fessiable to build DB with the original HG38 reference.

alexhbnr commented 3 years ago

Same issue here. When I run classify against the database miniSeq+H using the following code

metamaps classify --mappings classification_results --DB database/miniSeq+H -t 4

I get the same error message:

terminate called after throwing an instance of 'boost::wrapexcept<std::logic_error>'
  what():  Attempt to access an uninitialized boost::match_results<> class.

According to this Stackoverflow post, it seems that the error message is caused by line 1390 of the file fEM.h, which doesn't escape the case when a line doesn't match the regex search pattern. However, when I test the regex combination using Python, all lines can be parsed successfully.

Any suggestions what is going on?

Thanks!

dacheampong commented 2 years ago

Any update or work around on this issue, have same problem at my end. thanks