Repository navigation
get_metalinks(split=True): return resource, pd_net and t_net - #294
Open
dbdimitrov wants to merge 1 commit into
Open
dbdimitrov wants to merge 1 commit into
dbdimitrov wants to merge 1 commit into
Conversation
… estimate_metalinks accepts a ligand column Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #294 +/- ##
==========================================
+ Coverage 91.05% 91.10% +0.04%
==========================================
Files 79 79
Lines 4526 4540 +14
==========================================
+ Hits 4121 4136 +15
+ Misses 405 404 -1
🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Removes the MetalinksDB munging users (and the skill) currently write by hand before
estimate_metalinks.Changes
li.rs.get_metalinks(..., split=True)(keyword-only, defaultFalse, typed with overloads) returns(resource, pd_net, t_net):resource:lrrows asligand(metabolite) /receptor, deduplicated;pd_net: meanmorper (metabolite, gene) assource/target/weight(votes across curators; zeros kept);t_net: transport direction out → +1, in → −1, averaged, zeros dropped;Noneif no transport rows.split=True,typesdefaults to["lr", "pd"]; raisesValueErrorif either is excluded.li.mt.estimate_metalinksaccepts a resource with aligandorsourcecolumn (raises otherwise), so the split resource goes straight into bothestimate_metalinksand the CCC methods.Tests
tests/resource/test_get_metalinks.py: split output on a toy SQLite DB (db_path=),typesvalidation, empty transport.tests/method/test_estimate_metalinks.py:ligandandsourceresource columns.sc_multitutorial's hand-built tables. Tutorials are unchanged.Follow-up: the skill's
metabolites.md(#293) can switch tosplit=Trueonce this is merged.🤖 Generated with Claude Code