Skip to main content

Python SDK for Scout biomedical workflow APIs.

Project description

TryScout SDK

Python SDK for building biomedical workflows on top of the Scout API.

Install

pip install tryscout-sdk

Optional extras:

pip install "tryscout-sdk[chem]"     # RDKit transforms
pip install "tryscout-sdk[protein]"  # Biopython parsing/loaders
pip install "tryscout-sdk[full]"     # chem + protein

Quickstart

For the full local+API workflow below, install:

pip install "tryscout-sdk[full]"
import scout
from scout import MoleculeSet, Target, search, evidence, docking, properties, rank

scout.initialize(api_key="YOUR_SCOUT_API_KEY", base_url="https://api.tryscout.com")

target = Target.resolve("EGFR")
mols = MoleculeSet.from_smiles(["CCO", "CCN"]).canonicalize().deduplicate()

lit = search.query("EGFR NSCLC inhibitors")
support = evidence.find(
    subject="molecule:Gefitinib",
    predicate="targets",
    obj=target.to_entity_reference(),
)

admet = properties.predict(mols, endpoints=["solubility", "logp"])
poses = docking.predict(protein="PDB_TEXT_HERE", ligands=[mols[0].effective_smiles])

ranked = rank.by_weighted_score(
    list(mols),
    features={
        "support": [0.7, 0.4],
        "docking": [0.8, 0.5],
        "solubility": [0.6, 0.2],
    },
).top_k(2)

ranked.to_csv("ranked_hits.csv")

Workflow helpers

  • workflow.pipeline(...)
  • workflow.batch(...)
  • workflow.export_report(...)

Notes

  • API-backed primitives: search, entity resolution, evidence, docking, property prediction, structure prediction, molecule generation.
  • Local primitives: chemistry transforms, protein loaders/parsers, ranking, pipeline orchestration, report export.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tryscout_sdk-0.1.0a1.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tryscout_sdk-0.1.0a1-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file tryscout_sdk-0.1.0a1.tar.gz.

File metadata

  • Download URL: tryscout_sdk-0.1.0a1.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for tryscout_sdk-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 c41c8ff2778f8d4c4d39791970dddb941cd55a5362132bbca29bbf538609de71
MD5 413d5f8f25a39f240596e9c62d22e6b7
BLAKE2b-256 56665cb1c1596f1dca1c00446d1a7a16cf068a32d1dd316e6fac1bb707bac886

See more details on using hashes here.

File details

Details for the file tryscout_sdk-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: tryscout_sdk-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 42.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for tryscout_sdk-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 053553fc7d80ae50a0eaf8ab90d8ad262c252d7b4fb619dbe77662b76afa741f
MD5 1a93d3625aaf33077b249015c39472ce
BLAKE2b-256 09d58fa55cffe47f110f12a665e79ff6337ca395a6eeb489624ed6f445435bdc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page