Skip to content

Map modeltest-ng TIM model names onto RAxML-NG (#207) - #426

Closed
jtklein-agents wants to merge 1 commit into
masterfrom
207-missing-model
Closed

jtklein-agents wants to merge 1 commit into
masterfrom
207-missing-model

Conversation

@jtklein-agents

Copy link
Copy Markdown
Owner

Closes AntonelliLab#207

Summary

modeltest-ng and RAxML-NG use opposite names for the TIM models:

modeltest-ng frequencies RAxML-NG
TIMnef equal TIMn
TIMn estimated TIMnuf
 setModelFromString(modeltest result)
   model = raxmlNG model name
   TrN  -> TN93
   TPM1 -> K81
+  TIMn   -> TIMnuf   # was kept as TIMn (equal frequencies) by mistake
+  TIMnef -> TIMn     # was missing from the dropdown (the bug in #207)

All other modeltest-ng nucleotide names already map to the matching dropdown entry. I checked them by running the bundled modeltest-ng and raxml-ng --parse.

Evidence

  • Before: modeltest-ng picks TIM2ef+G4. The substitution model is set to TIM2ef, which isn't a dropdown option. A pick of TIM3+G4 became TIM3, which RAxML-NG runs with equal frequencies.
    After: new test in alignmentStore.test.ts:
    setModelFromString(raxmlNG: 'TIM2ef+G4') -> substitutionModel 'TIM2'
    setModelFromString(raxmlNG: 'TIM3+G4')   -> substitutionModel 'TIM3uf'
    
    The full suite passes: 627 tests.

Merge Danger

Door: two-way

Blast Radius: narrow

This only affects how a modeltest-ng result is applied to the RAxML-NG model options for nucleotide alignments. Analyses that already ran with a TIM1/2/3 pick used equal frequencies. Re-running them now gives estimated frequencies, so their results can differ.

🤖 Generated with Claude Code

modeltest-ng names the TIM models by frequencies the opposite way to
raxml-ng: its TIMn estimates frequencies (raxml-ng TIMnuf) and TIMnef
uses equal ones (raxml-ng TIMn). TIMnef was missing from the dropdown,
and TIMn silently became the equal-frequency raxml-ng model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jtklein-agents

Copy link
Copy Markdown
Owner Author

Superseded by AntonelliLab#534.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing model

1 participant