Add load_biomodel() and list_biomodels() for VCell server integration#36
Merged
Add load_biomodel() and list_biomodels() for VCell server integration#36
Conversation
Implements load_biomodel(biomodel_id, api_client=None) which uses the VCell REST API to fetch and parse a BioModel. Public models work with the default anonymous client; private models accept an authenticated ApiClient. Replaces the old load_vcml_biomodel_id() URL-based approach. Also adds CLAUDE.md with project conventions and verification steps.
Add vc.list_biomodels() to return all accessible models as a list of dicts with id, name, and owner. Extend load_biomodel() to accept name and owner kwargs for searching by name. Both require an authenticated ApiClient. Update quickstart guide with authenticated workflow examples. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Details
load_biomodel() supports three usage patterns:
Public model by ID (no auth needed)
bm = vc.load_biomodel("279851639")
Search by name (requires auth)
bm = vc.load_biomodel(name="Tutorial_MultiApp", owner="tutorial", api_client=client)
List all accessible models (requires auth)
models = vc.list_biomodels(api_client=client)
Test plan