DrugLinker
This package is a simple python module to obtain all unique drug identifiers that match a given input string. It does it by matching the input term with DrugBank open-data vocabulary : https://www.drugbank.ca/releases/latest#open-data. It is useful to process candidate drug tokens after drug named-entity recognition (NER) or to directly match sentences after tokenization.
To install the package simply run the following in a bash shell:
pip install druglinker==0.1.1
Example of use in a python environment:
from druglinker import dbsearch
dbsearch.get_ids("amox")
# output: ["DB01060"]
dbsearch.get_ids("amoxicillin")
# output: ["DB01060"]
dbsearch.get_ids("vancomycin")
# output: ["DB00512"]
# Simple sentence tagging:
text = "20mg of midazolam were administered intravenously"
for term in text.split():
ids = dbsearch.get_ids(term)
if ids:
print(term)
print(ids)
# output:
# midazolam
# ['DB00683']
For instance you can now easily find further information about the drug identifier detected (e.g. DB00683) at https://www.drugbank.ca/drugs/DB00683
Metadata
Release files for druglinker 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| druglinker-0.1.1.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| druglinker-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 717.7 kB
Release files / druglinker-0.1.1.tar.gz
| Download URL | druglinker-0.1.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ede0a7debbaa550cfefa214e3a48dff53261cdf1896df6d34c44a79484e10d2
|
|
BLAKE2b-256 checksum How to use checksums |
264858da85cf77f632cd786260a9dabd6e9f58942d207c239bf6d731adba61f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
|
Release files / druglinker-0.1.1-py3-none-any.whl
| Download URL | druglinker-0.1.1-py3-none-any.whl |
|---|---|
| Size | 715.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3b48cb46f1b5ec7c02a881b03372619d3c7682606233c2acb660165549126ed
|
|
BLAKE2b-256 checksum How to use checksums |
7112c3e1cb82118ba976f2e166ca41ed7106fd35c47c614b6a0cdf72383e6a0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
|