Skip to content

Assert the computed D-E weight in the Fig. 2a test - #47

Merged
alpae merged 1 commit into
DessimozLab:mainfrom
alpae:fig2a-tandem-weights
Oct 20, 2026
Merged

alpae merged 1 commit into
DessimozLab:mainfrom
alpae:fig2a-tandem-weights

Conversation

@alpae

@alpae alpae commented Oct 19, 2026

Copy link
Copy Markdown
Member

Fixes #39 (part of #43).

In the example of Fig. 2a of the edgeHOG paper, species 3 has the gene order A Y C D1 E1 D2 E2. The figure shows weight 2 for D–E in the propagated graph of species 3, and 3 at the root.

Each of the three extant adjacencies D1–E1, E1–D2 and D2–E2 supports the ancestral adjacency D–E, so the weights computed by edgeHOG (3 in species 3, 4 at the root) are correct, and the figure simplifies this. The weights only matter for linearization, and the linearized result of the example is the same either way.

This PR turns the xfail test test_paper_figure2.py::test_fig2a_tandem_duplicate_weights, which encoded the figure's values, into a regular test of the computed weights. No code change.

Fig. 2a of the edgeHOG paper shows weight 2 for D-E in the propagated
graph of species 3 (A Y C D1 E1 D2 E2), and 3 at the root. Each of the
three extant adjacencies D1-E1, E1-D2 and D2-E2 supports D-E, so the
computed weights of 3 and 4 are correct and the figure simplifies this.
Turn the xfail test into a regular test of the computed weights.

Fixes DessimozLab#39
@alpae
alpae merged commit 79e1642 into DessimozLab:main Oct 20, 2026
6 checks passed
@alpae
alpae deleted the fig2a-tandem-weights branch October 20, 2026 15:31
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.

Fig. 2a example: D-E weight from tandem duplicates differs from the figure

1 participant