Skip to content

testUCLNclock.json: list the sequences explicitly - #1228

Open
alexeid wants to merge 1 commit into
masterfrom
fix/ucln-json-explicit-sequences
Open

alexeid wants to merge 1 commit into
masterfrom
fix/ucln-json-explicit-sequences

Conversation

@alexeid

@alexeid alexeid commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

examples/testUCLNclock.json writes its alignment with the shorthand Carp: "ATGG…", one key per taxon. That works in BEAST 2 because Alignment extends TreeTipData, a name/value Map, so unknown keys become sequences. BEAST 3 removed Map and TreeTipData (beast3 a37b3b2), so there the file fails with "This BEASTInterface (dna) has no input with name Carp".

This PR lists the ten sequences explicitly as Sequence objects (sequence: [{spec: "Sequence", totalcount: 4, taxon: "Carp", value: "…"}, …]), the form testHKY.json already uses. Nothing else changes.

Tested

  • BEAST 2.7.7: the original and the rewritten file give identical traces with the same seed (200k steps), so the data are unchanged.
  • BEAST 3 (2.8.0): the rewritten file loads and runs, starting from the same posterior and likelihood as BEAST 2.7.7.

With this and #1227, all 44 top-level examples load in BEAST 2.7.7, and every one except testSliceHKY (SliceOperator, removed from BEAST 3) loads in BEAST 3 once CompEvol/beast3#235 (restoring TreeHeightLogger as a deprecated class) is in (CompEvol/beast3-test).

The alignment used the taxon: "sequence" shorthand, which relies on
Alignment being a name/value Map (TreeTipData). BEAST 3 removed that
base class, so the example no longer loads there. List the sequences as
Sequence objects instead, as testHKY.json does. The data are unchanged:
with the same seed BEAST 2.7.7 gives identical traces.
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.

1 participant