Simple drug linking
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file druglinker-0.1.1.tar.gz.
File metadata
- Download URL: druglinker-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ede0a7debbaa550cfefa214e3a48dff53261cdf1896df6d34c44a79484e10d2
|
|
| MD5 |
4bade447fb868a11286113b96771b492
|
|
| BLAKE2b-256 |
264858da85cf77f632cd786260a9dabd6e9f58942d207c239bf6d731adba61f9
|
File details
Details for the file druglinker-0.1.1-py3-none-any.whl.
File metadata
- Download URL: druglinker-0.1.1-py3-none-any.whl
- Upload date:
- Size: 715.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3b48cb46f1b5ec7c02a881b03372619d3c7682606233c2acb660165549126ed
|
|
| MD5 |
f257e43a48885c32b3fb735a52c1b646
|
|
| BLAKE2b-256 |
7112c3e1cb82118ba976f2e166ca41ed7106fd35c47c614b6a0cdf72383e6a0a
|