Skip to main content

scigantic-deeppk

CI PyPI PyPI - Python Version License

Client for Deep-PK (small-molecule pharmacokinetic and toxicity prediction across 73 endpoints), plus a mirrored copy of its CYP450 inhibitor/substrate reference data.

import scigantic_deeppk as deeppk

df = deeppk.predict("CC(=O)OC1=CC=CC=C1C(=O)O", pred_type="metabolism")  # aspirin

Installation

$ pip install scigantic-deeppk

Live predictions

Deep-PK ships no downloadable model or pip package, only a free async job API: POST submits SMILES, GET polls by job_id until the job finishes. predict() wraps that round trip and blocks until the result is ready:

df = deeppk.predict("CC(=O)OC1=CC=CC=C1C(=O)O", pred_type="admet")

# Batch
df = deeppk.predict(["CCO", "CC(=O)OC1=CC=CC=C1C(=O)O"], pred_type="metabolism")

pred_type is one of absorption, distribution, excretion, metabolism, toxicity, admet (default, all 73 endpoints). A single molecule typically takes 30-90s; there is no synchronous endpoint, no documented rate limit, and no SLA, so this is fine for exploration but not for anything that needs to run offline or reproducibly.

The API's own docs page names the POST field SMILES_string; the field that actually works, found by testing against the live server, is lowercase smiles (smiles_file for a batch). predict() already gets this right, this is only worth knowing if you're calling the API directly.

CYP450 reference data

Deep-PK's data page also publishes ~80 static training datasets, including CYP1A2/2C9/2C19/2D6/3A4 inhibitor and substrate sets. cyp_reference() reads a small (~1.5MB, 105,695-row) parquet mirror of just those ten, useful for e.g. checking compound overlap against another CYP dataset before trusting a transfer or leakage number:

df = deeppk.cyp_reference("cyp3a4", "inhibitor")
df = deeppk.cyp_reference()  # every isoform and kind

Columns: isoform (one of cyp1a2/cyp2c9/cyp2c19/cyp2d6/cyp3a4), kind (inhibitor/substrate), split (Deep-PK's own training/val/test split), smiles, label (0/1). Row counts per isoform+kind reproduce Deep-PK's own stated totals exactly.

Command line

$ scigantic-deeppk predict "CC(=O)OC1=CC=CC=C1C(=O)O" --pred-type metabolism
$ scigantic-deeppk cyp-reference --isoform cyp3a4 --kind inhibitor

License

MIT-0. See LICENSE. This covers the code in this package only.

Data license

Deep-PK's data page states the CYP450 datasets are "Open Knowledge" but publishes no formal license file or terms beyond that. cyp_reference()'s mirror reproduces that data as-is; check with the Ascher lab (biosig.lab.uq.edu.au/deeppk) before redistributing it further if that matters for your use.

Metadata

Release files for scigantic-deeppk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scigantic-deeppk 0.1.0
File Size Uploaded Provenance Actions
scigantic_deeppk-0.1.0.tar.gz 7.9 kB Without provenance Details for scigantic_deeppk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scigantic-deeppk 0.1.0
File Interpreter ABI Platform Actions
scigantic_deeppk-0.1.0-py3-none-any.whl Python 3 none any Details for scigantic_deeppk-0.1.0-py3-none-any.whl

Total release size: 15.4 kB

Release files / scigantic_deeppk-0.1.0.tar.gz

Download URL scigantic_deeppk-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ace920b74f13e262ab5494d32d92f84d81c7c1adb7b85a68b06d6e9b8d26d82d
BLAKE2b-256 checksum
How to use checksums
18865b7d0df1e17ddb421a10dfaaeef8f9cac4ed3e03a86eb74b683eca05ad3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / scigantic_deeppk-0.1.0-py3-none-any.whl

Download URL scigantic_deeppk-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11b83c2ae069ce28dc9532af81c162942813a0c2d10302e0d3fa0ceaee6e8ccd
BLAKE2b-256 checksum
How to use checksums
93b713a8dc8ede87699f79772038214da5f70fb470c115c30e948ada115038e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for scigantic-deeppk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page