Skip to content

Comments

feat: re-add 'unrooted' argument to cophenetic distances#98

Merged
Neclow merged 1 commit intosbhattlab:mainfrom
Neclow:unrooted_coph_fix
Aug 7, 2025
Merged

feat: re-add 'unrooted' argument to cophenetic distances#98
Neclow merged 1 commit intosbhattlab:mainfrom
Neclow:unrooted_coph_fix

Conversation

@Neclow
Copy link
Collaborator

@Neclow Neclow commented Aug 7, 2025

Reinstate the "unrooted" option for cophenetic distances to match ete3. This might be useful for BME applications.

Note: comparing the "unrooted" option for phylo2vec with branch lengths requires a special kind of unrooting. ete3 simply deletes the first children that is not a leaf, while we remove the node with the largest label (which has to be a non-leaf for n_leaves > 2).

Supersedes #97

@Neclow Neclow mentioned this pull request Aug 7, 2025
@Neclow Neclow merged commit f969de4 into sbhattlab:main Aug 7, 2025
7 checks passed
@Neclow Neclow deleted the unrooted_coph_fix branch October 16, 2025 12:36
@Neclow Neclow restored the unrooted_coph_fix branch October 16, 2025 12:37
@Neclow Neclow deleted the unrooted_coph_fix branch October 16, 2025 13:02
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