Skip to main content

Tool for getting scaling factors from different drugs

Project description

MIT Test package pre-commit Deploy static content to Pages

Drug database

Simple command line interface for getting scaling factors for different drugs

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)

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

drug_database-0.1.3.tar.gz (8.7 kB view hashes)

Uploaded source

Built Distribution

drug_database-0.1.3-py3-none-any.whl (8.4 kB view hashes)

Uploaded py3

Supported by

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