Estimate cost for a protein library screen
Estimate the cost of a protein library screen without creating any resource or consuming GPU.
ParametersExpand Collapse
proteins: Iterable[Protein]List of protein entries to screen.
List of protein entries to screen.
entities: Iterable[ProteinEntity]Entities that make up this protein complex
Entities that make up this protein complex
class ProteinEntityProteinEntity: …
class ProteinEntityRnaEntity: …
class ProteinEntityDnaEntity: …
Target specification (structure template or template-free)
Target specification (structure template or template-free)
class TargetStructureTemplateTarget: …Target defined by an uploaded 3D structure (CIF or PDB file). Only chains included in chain_selection are used.
Target defined by an uploaded 3D structure (CIF or PDB file). Only chains included in chain_selection are used.
chain_selection: Dict[str, TargetStructureTemplateTargetChainSelection]Chains selected from the uploaded structure, keyed by chain ID. Only chains listed here are included in the pipeline run — any chains omitted from this mapping are ignored. Each value defines which residues to keep, which are epitope residues, which are non-binding residues, and which are flexible.
Chains selected from the uploaded structure, keyed by chain ID. Only chains listed here are included in the pipeline run — any chains omitted from this mapping are ignored. Each value defines which residues to keep, which are epitope residues, which are non-binding residues, and which are flexible.
class TargetStructureTemplateTargetChainSelectionStructureTemplateTargetPolymerChainSpec: …Per-chain specification for a polymer (protein/RNA/DNA) chain in a structure template target.
Per-chain specification for a polymer (protein/RNA/DNA) chain in a structure template target.
crop_residues: Union[Iterable[int], Literal["all"]]0-indexed residue indices to retain from this chain, or ‘all’ to keep all residues. Residues not listed are excluded from the pipeline run.
0-indexed residue indices to retain from this chain, or ‘all’ to keep all residues. Residues not listed are excluded from the pipeline run.
0-indexed residue indices where binder contact is desired (the epitope). All indices must be present in crop_residues and must not overlap non_binding_residues.
class TargetNoTemplateTarget: …Target defined by sequences only, without a 3D structure template
Target defined by sequences only, without a 3D structure template
entities: Iterable[TargetNoTemplateTargetEntity]Entities (proteins, RNA, DNA, ligands) defining the target complex.
Entities (proteins, RNA, DNA, ligands) defining the target complex.
class TargetNoTemplateTargetEntityProteinEntity: …
class TargetNoTemplateTargetEntityRnaEntity: …
class TargetNoTemplateTargetEntityDnaEntity: …
bonds: Optional[Iterable[TargetNoTemplateTargetBond]]Covalent bond constraints between atoms in the target complex. Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
Covalent bond constraints between atoms in the target complex. Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
atom1: TargetNoTemplateTargetBondAtom1Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
class TargetNoTemplateTargetBondAtom1LigandAtom: …Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
atom2: TargetNoTemplateTargetBondAtom2Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
class TargetNoTemplateTargetBondAtom2LigandAtom: …Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand atom reference for a CCD atom or an explicitly atom-mapped SMILES atom.
constraints: Optional[Iterable[TargetNoTemplateTargetConstraint]]Structural constraints (pocket and contact). Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
Structural constraints (pocket and contact). Ligand atom references support CCD atom names and explicitly atom-mapped SMILES atoms.
class TargetNoTemplateTargetConstraintPocketConstraint: …Constrains the binder to interact with specific pocket residues on the target.
Constrains the binder to interact with specific pocket residues on the target.
Binding pocket residues keyed by chain ID. Each key is a chain ID (e.g. “A”) and the value is an array of 0-indexed residue indices that define the pocket on that chain.
class TargetNoTemplateTargetConstraintContactConstraint: …Maximum-distance contact constraint between two polymer residues or ligand atoms.
Maximum-distance contact constraint between two polymer residues or ligand atoms.
token1: TargetNoTemplateTargetConstraintContactConstraintToken1Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
class TargetNoTemplateTargetConstraintContactConstraintToken1LigandContactToken: …Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
token2: TargetNoTemplateTargetConstraintContactConstraintToken2Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
class TargetNoTemplateTargetConstraintContactConstraintToken2LigandContactToken: …Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Ligand contact token for a CCD atom or an explicitly atom-mapped SMILES atom.
Chain IDs of ligand entities that are part of the binding epitope. Ligands are marked as epitope in full (no residue-level selection).
ReturnsExpand Collapse
class LibraryScreenEstimateCostResponse: …Estimate response with monetary values encoded as decimal strings to preserve precision.
Estimate response with monetary values encoded as decimal strings to preserve precision.
breakdown: BreakdownCost breakdown for the billed application.
Cost breakdown for the billed application.
application: Literal["structure_and_binding", "small_molecule_design", "small_molecule_library_screen", 4 more]
Estimate cost for a protein library screen
import os
from boltz_api import Boltz
client = Boltz(
api_key=os.environ.get("BOLTZ_API_KEY"), # This is the default and can be omitted
)
response = client.protein.library_screen.estimate_cost(
proteins=[{
"entities": [{
"chain_ids": ["string"],
"type": "protein",
"value": "value",
}]
}],
target={
"chain_selection": {
"A": {
"chain_type": "polymer",
"crop_residues": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
}
},
"structure": {
"type": "url",
"url": "https://example.com",
},
"type": "structure_template",
},
)
print(response.breakdown){
"breakdown": {
"application": "structure_and_binding",
"cost_per_unit_usd": "0.0500",
"num_units": 1
},
"disclaimer": "This is an estimate only and may differ from your actual charges. Final billing is based on exact token counts computed at run time. For large library screens, the estimate is extrapolated from a sample and may be less accurate for highly variable inputs.",
"estimated_cost_usd": "0.0500"
}Returns Examples
{
"breakdown": {
"application": "structure_and_binding",
"cost_per_unit_usd": "0.0500",
"num_units": 1
},
"disclaimer": "This is an estimate only and may differ from your actual charges. Final billing is based on exact token counts computed at run time. For large library screens, the estimate is extrapolated from a sample and may be less accurate for highly variable inputs.",
"estimated_cost_usd": "0.0500"
}