This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 | |
import pandas as pd | |
import pandas.io.sql as sqlio | |
con = psycopg2.connect(database="chembl_29", user="leelasd", password="", host="127.0.0.1", port="5432") | |
print("Database opened successfully") | |
sql="""SELECT DISTINCT m.chembl_id AS compound_chembl_id,s.canonical_smiles, | |
m.molregno, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 | |
import pandas as pd | |
import pandas.io.sql as sqlio | |
con = psycopg2.connect(database="chembl_29", user="leelasd", password="", host="127.0.0.1", port="5432") | |
print("Database opened successfully") | |
sql="""SELECT m.chembl_id AS compound_chembl_id, | |
s.canonical_smiles, | |
r.compound_key, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd # uses pandas python module to view and analyse data | |
import requests # this is used to access json files | |
#====================================================================# | |
# using a list of known targets, find compounds that are active on these targets: | |
def find_bioactivities_for_targets(targets): | |
targets = ",".join(targets) # join the targets into a suitable string to fulfil the search conditions of the ChEMBL api |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openmmtools.constants import kB | |
from simtk import unit | |
import numpy as np | |
from tqdm import tqdm | |
from IPython.core.display import display, HTML | |
from IPython.display import SVG | |
from rdkit.Chem.Draw import IPythonConsole | |
import mdtraj as md | |
#from utils import * | |
import nglview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import torch.nn as nn | |
from torch.nn import Softplus | |
from torch.utils.data import Dataset, DataLoader | |
import dgl | |
import dgl.function as fn | |
from dgl.batched_graph import sum_nodes | |
from dgl.data.chem.utils import mol_to_complete_graph | |
import numpy as np | |
from collections import defaultdict |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.