Skip to content

Applying a modeltest result with an unlisted protein matrix throws a TypeError #403

Backlog

Description

@jtklein-agents

What happens

Alignment.setModelFromString (src/app/store/Alignment.ts:353) reads the protein matrix name with re.exec( model )[1], where re matches the RAxML amino-acid matrix names at the end of modeltest-ng's suggested RAxML model. When the suggested model ends in a matrix name the app doesn't list, exec returns null and the line throws an uncaught TypeError, so applying the modeltest result to a protein alignment fails partway, after some run options have already been set.

Expected

The app says the suggested matrix isn't supported (a user-fix error), or keeps the current matrix, instead of a TypeError.

Found while charting Map: strict TypeScript: strictNullChecks flags it, and the map rules that a fix changing user-visible behavior is its own issue.

Activity

  1. added
    bug
    needs-triage
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions