DiltheyLab / MetaMaps

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

regex_search failed while running classify #69

Open dawnmy opened 1 year ago

dawnmy commented 1 year ago

I ran metamaps on a custom database with more than 20k genomes. The map command was able to finish, but the classify gives the following error:

metamaps: src/meta/fEM.h:1392: std::__cxx11::string meta::extractTaxonId(std::__cxx11::string): Assertion `boost::regex_search(line, matchBrackets, matchTaxonID)' failed.
[1]    3985834 abort (core dumped)  ./libs/bin/metamaps classify --mappings  --DB  -t 10
AlexanderDilthey commented 12 months ago

Hi @dawnmy,

I suspect this is because your contig identifiers do not contain the taxon IDs in the expected format - I modified the code to output an informative error message, could you try to run again and post the result?

Best wishes

Alex