Repository navigation
Conversation
…node HOG._tax_now referenced a node of the pruned working species tree, so every per-level pickle carried a copy of the species tree, and code comparing those nodes across copies was wrong (see #115). HOGs now only store the level's name (taxname); the constructor still accepts a node and takes its name. The taxlevel property is removed. to_orthoxml() now requires the species tree in which TaxRange and the scores are computed (the pipeline always passed the full species tree); the fallbacks to the HOG's own node in to_orthoxml() and in the root-level wrapper of read_infer_xml_rhog are gone. No output change: the golden snapshots and the nf-test snapshots are unchanged. The per-level pickles of the fungi-30 rootHOG F0848191 shrink from 6.30 MB to 4.58 MB. Fewer ete3 objects held by HOGs also reduces the surface of the ete4 migration. Refs #115 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second part of #115: an output-neutral refactor. The fix itself is in #126.
Change
HOGonly stores the name of its taxonomic level (taxname) instead of a node of the pruned working species tree (_tax_now).taxlevelproperty is removed.to_orthoxml(species_tree, …)now requires the tree in which TaxRange and the scores are computed. The pipeline always passed the full species tree. The fallbacks to the HOG's own node are removed, both into_orthoxml()and in the root-level wrapper ofread_infer_xml_rhog.split_hog, and the HOGs created insingletone_hog_/merge_subhogsuse the name.Why
prepare_species_tree,LevelHOGProcessor) and for gene trees.No output change
dessimozlab/fastoma:dev: no diff.defaultandoptionspass locally with unchanged snapshots.test_hog_stores_only_the_name_of_its_level: a pickled HOG contains no ete3 objects. It fails with the old code.Refs #115
🤖 Generated with Claude Code