Drug database
Simple command line interface for getting scaling factors for different drugs
- Documentation: https://ComputationalPhysiology.github.io/drug-database/
- Source code: https://github.com/ComputationalPhysiology/drug-database
Install
$ python -m pip install drug-database
Once installed you will get access to the drug-db command.
Usage
Get help using
$ drug-db --help
List all available drugs
$ drug-db list-drugs
Drugs
┏━━━━━━━━━━━━━━━━┓
┃ Name ┃
┡━━━━━━━━━━━━━━━━┩
│ Sotalol │
│ Azimilide │
│ Ibutilide │
│ Risperidone │
│ Clarithromycin │
│ Terfenadine │
│ Bepridil │
│ Pimozide │
│ Dofetilide │
│ Disopyramide │
│ Cisapride │
│ Tamoxifen │
│ Vandetanib │
│ Metropolol │
│ Droperidol │
│ Loratadine │
│ Ranolazine │
│ Quinidine │
│ Diltiazem │
│ Astemizole │
│ Nitrendipine │
│ Chlorpromazine │
│ Clozapine │
│ Control │
│ Nifedipine │
│ Verapamil │
│ Domperidone │
│ Ondansetron │
│ Mexiletine │
└────────────────┘
Showing information about specific drug
$ drug-db show-drug Verapamil
Scaling factors for drug
Verapamil and FPC 1
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Name ┃ Value ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ scale_drug_INa │ 1.0 │
│ scale_drug_INaL │ 1.0 │
│ scale_drug_Ito │ 1.0 │
│ scale_drug_ICaL │ 0.7342 │
│ scale_drug_IKr │ 0.8815 │
│ scale_drug_IKs │ 1.0 │
│ scale_drug_IK1 │ 1.0 │
│ scale_drug_IKb │ 1.0 │
│ scale_drug_INab │ 1.0 │
│ scale_drug_ICab │ 1.0 │
│ scale_drug_IpCa │ 1.0 │
│ scale_drug_Isacns │ 1.0 │
│ scale_drug_Isack │ 1.0 │
└───────────────────┴────────┘
Note that this is showing the values that are 1 times FPC (FIXME: explain what this means). If you want to get the values for 5 times FPC the you can do
$ drug-db show-drug Verapamil --fpc 5
Scaling factors for drug
Verapamil and FPC 5
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Name ┃ Value ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ scale_drug_INa │ 1.0 │
│ scale_drug_INaL │ 0.9997 │
│ scale_drug_Ito │ 1.0 │
│ scale_drug_ICaL │ 0.3199 │
│ scale_drug_IKr │ 0.5588 │
│ scale_drug_IKs │ 1.0 │
│ scale_drug_IK1 │ 1.0 │
│ scale_drug_IKb │ 1.0 │
│ scale_drug_INab │ 1.0 │
│ scale_drug_ICab │ 1.0 │
│ scale_drug_IpCa │ 1.0 │
│ scale_drug_Isacns │ 1.0 │
│ scale_drug_Isack │ 1.0 │
└───────────────────┴────────┘
json support
By default the tables are displayed in a Rich table, however sometimes you might want to use these values in another program in which you can convert the values to json by using the --json flag, e.g
$ drug-db show-drug Verapamil --fpc 5 --json
{"scale_drug_INa": 1.0, "scale_drug_INaL": 0.9997, "scale_drug_Ito": 1.0, "scale_drug_ICaL": 0.3199, "scale_drug_IKr": 0.5588, "scale_drug_IKs": 1.0, "scale_drug_IK1": 1.0, "scale_drug_IKb": 1.0,
"scale_drug_INab": 1.0, "scale_drug_ICab": 1.0, "scale_drug_IpCa": 1.0, "scale_drug_Isacns": 1.0, "scale_drug_Isack": 1.0}
You can also save this to a file using e.g
$ drug-db show-drug Verapamil --fpc 5 --json > verapamil_5.json
License
MIT
Author
Henrik Finsberg (henriknf@simula.no)
Metadata
Release files for drug-database 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drug_database-0.1.3.tar.gz | 8.7 kB | Without provenance | Details for drug_database-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drug_database-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for drug_database-0.1.3-py3-none-any.whl |
Total release size: 17.1 kB
Release files / drug_database-0.1.3.tar.gz
| Download URL | drug_database-0.1.3.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4285ea88e408b13ee32a4434b16ca34259335dd4dd37be3b452c205250daa4ae
|
|
BLAKE2b-256 checksum How to use checksums |
238e0f8c77f8de94c25f77c7b876519338c206e41c92418847487ff9c2f5c6a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / drug_database-0.1.3-py3-none-any.whl
| Download URL | drug_database-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82b34be4f5be40e8cb1f8274d9f2a553eab5547a55068c72f2a82574636fbb8b
|
|
BLAKE2b-256 checksum How to use checksums |
18393c9ff02ea49dbbd0f61ec7a82de5c41583a4daddbc0168cf01247a142cf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for drug-database 0.1.3
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.