-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data source: DrugMAP #112
Comments
Hi @andrewsu @newgene, do you recognize the "raw" data format of DrugMap? E.g.
The first block is a comment, followed by abbreviation legend; then each block is an entry of drug. It's not hard to parse it with Python, but if it's a known format, we may be able to save some time using some libraries. Thanks! |
@erikyao unfortunately, it's not any standard format that I recognize... |
The top of the "Drug to DME Mapping Information" file looks like this:
From this record, we would want to yield a JSON object like this:
|
The DrugMAP parser attached below creates an array of JSON objects representing drug-enzyme mappings, along with their associated reference details. It works by reading a text file that contains raw data on drug-to-enzyme interactions and then converting this information into a standardized JSON format and printing it to an output JSON file. The parser extracts key details such as drug names, drug IDs, enzyme names, enzyme IDs, and relevant reference citations (such as PubMed IDs). By organizing these fields into structured JSON objects, the parser ensures that the data can be easily queried, analyzed, and integrated into larger systems, such as APIs. GitHub of DrugMAP Parser: https://github.com/seltepu/Updated-DrugMAP-Parser/tree/main The above GitHub contains the input file of JSON objects, the processing Python code, and also the JSON array output file. |
@seltepu Looking good! However, I realized that we need to make some changes... Here is the first record from your output file:
I thought that the identifiers
We are interested in the Similarly, the info on
Let's capture the
(NOTE also the change for |
publication: https://academic.oup.com/nar/article/51/D1/D1288/6761740
example drug record: http://drugmap.idrblab.net/data/drug/details/DM6A0X7
download page: http://drugmap.idrblab.net/full-data-download
minimally, I can see creating an API for drug targets, transporters, and metabolizing enzymes. Possibly more too...
The text was updated successfully, but these errors were encountered: