Giter Site home page Giter Site logo

Comments (4)

corneliusroemer avatar corneliusroemer commented on August 11, 2024

I also got this error, but now in 2.1.4-beta on macOS and it drove me mad.

I couldn't pin it down. A reboot fixed it. Very strange.

IQ-TREE multicore version 2.1.4-beta COVID-edition for Mac OS X 64-bit built Jun 24 2021

 ERROR: alignment.cpp:77: std::__1::string &Alignment::getSeqName(int): Assertion `i >= 0 && i < (int)seq_names.size()' failed.

from iqtree2.

corneliusroemer avatar corneliusroemer commented on August 11, 2024

Now I got the error using version 2.2.0-beta on centOS.

When I downloaded the fasta file to my local computer and ran the same command that errored on the cluster, no error was thrown.

When I deleted the log files and the potentially corrupted output tree from previous runs it ran through without error. So I guess as a workaround, one can try to remove intermediary output files from iqtree.

By the way, in the new version, the code line has changed, in case anyone googles this.

ERROR: alignment.cpp:80: std::__1::string &Alignment::getSeqName(int): Assertion `i >= 0 && i < (int)seq_names.size()' failed.

from iqtree2.

corneliusroemer avatar corneliusroemer commented on August 11, 2024

I found this relevant message from the maintainer @bqminh in the Google group:

This line in the log is relevant (just printed right before the error messages):

NOTE: Restoring information from model checkpoint file AS.pruning-0.5.model.gz

It means that you had a previous (unfinished) run and IQ-TREE loaded the checkpoint file. From what you wrote below, Iā€™m guessing that you now change the alignment file (-s option). This causes incompability between the checkpoint and the alignment.

So try to run again with another --prefix and see how it goes.

https://groups.google.com/g/iqtree/c/Gii__XoEIdU/m/w0JsQqEKCwAJ

And indeed, I think I also aborted a previous run and that's when the error appeared.

I'm not quite sure what the easiest workaround is when one hits this error. I also think it would be nice if iqtree would not error in this situation.

from iqtree2.

bqminh avatar bqminh commented on August 11, 2024

Yes, it would have been nice to print such more informative error message... But since you found the answer I'll close this issue.

from iqtree2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.