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.1

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.1
File Size Uploaded Provenance Actions
scigantic_deeppk-0.1.1.tar.gz 8.9 kB Without provenance Details for scigantic_deeppk-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 16.4 kB

Release files / scigantic_deeppk-0.1.1.tar.gz

Download URL scigantic_deeppk-0.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d69bbaa90c8b20a1cac7a749989706e6c57a3ed794dbeb7eaab962e1f96eaa12
BLAKE2b-256 checksum
How to use checksums
362a3492e590c276aa22e4bd5793ab8f00662b2969c1830425a638cd7f698af5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

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

Download URL scigantic_deeppk-0.1.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a64e39713d64b288a7e5309468a81c1cf6068dfc17e0df9d5d6968ff821485a
BLAKE2b-256 checksum
How to use checksums
b2d5460fe1e42133d00dfe21b481709c5e812fb02d0087d4536dcda6ab15dabc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for scigantic-deeppk 0.1.1

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.1 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