Skip to content

Instantly share code, notes, and snippets.

View MichaelaEBI's full-sized avatar

Michaela MichaelaEBI

View GitHub Profile
@MichaelaEBI
MichaelaEBI / GetAdverseEventsForOTdrugs.py
Last active December 7, 2018 12:06
Get side effects for all drugs in ChEMBL evidence strings
# exec(open('GetAdverseEventsForOTdrugs.py').read())
import requests
import json
# Drug names are keys in all three dictionaries
Drugs = {} # Count of the different adverse events per drug
DrugsAE = {} # The adverse events for each drug
Drugs_ChEMBLID = {} # Drug name to ChEMBL ID mapping