proto-tools is an open source infrastructure layer,
that provides access to a large collection of computational biology and biological AI tools behind a
single, uniform Python interface. This guide covers how to set-up the package and run a tool.
Open as a runnable notebook
Installation
To begin, pip install the package in a virtual environment. The base environment of proto-tools is intentionally light for maximum compatibility. The base package requires Python 3.10 or later.Example tool call
All models and tools have their standard operations divided into functions that operate over the following abstractions:Inputs: Contain the actual biological entities the tool operates over.Configs: Contain runtime settings that can be adjusted to control tool behavior.Outputs: The object that is produced by the tool.
On the documentation page above, we can see the run function and the various models it takes in as arguments. Let’s import them below.
python
python
Go deeper
For the complete runtime reference, covering identifier resolution, the registry and CLI surfaces, schema and documentation extraction, gated model weights, and calling conventions, consult the developer notes in the proto-tools repository: Finding and Calling ToolsIdentifier resolution, registry methods, schemas, docs extraction, gated weights, and calling patterns.Next Steps
Continue with Tool Environments, the next guide in this series.Tool Environments
How a tool’s isolated environment is built on first call and cached afterward.
Tool Persistence
Keep a model loaded across calls to skip repeated load times.
Device Management
How tools are placed on GPUs, with LRU eviction and CPU offload.
Cloud Inference
Dispatch tool runs to remote compute.