Skip to content

Instantly share code, notes, and snippets.

View ravila4's full-sized avatar

Ricardo Avila ravila4

View GitHub Profile
@ravila4
ravila4 / vec_analysis.ipynb
Created April 22, 2018 13:55
Multi dimensional scaling of prot2vec embedding features on a collection of receptors
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / intro_biopython.ipynb
Created April 29, 2018 15:52
Introduction to Biopython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / linear_regression.ipynb
Created April 29, 2018 16:29
Linear regression example with sklearn and statsmodels
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / Surface_plots.ipynb
Created April 29, 2018 16:32
Molecular surface plots with oddt
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / ORA_docking_results.ipynb
Created April 29, 2018 16:39
Orexin docking results
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / nglview.ipynb
Created April 29, 2018 22:25
NGLView - Basics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / BioservicesUniProt.ipynb
Created July 7, 2018 17:37
Getting UniProt Annotations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / Pharos_MySQL_connect.ipynb
Last active May 11, 2022 23:49
Connecting to the Pharos MySQL database with Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ravila4
ravila4 / parse_drugbank_xml.py
Created March 8, 2019 04:03
Python script for parsing an xml database dump from DrugBank for extracting Log P values
import xmltodict
import pandas as pd
with open("full_database.xml") as db:
doc = xmltodict.parse(db.read())
values = []
for item in doc['drugbank']['drug']:
logp = None
try:
@ravila4
ravila4 / utility.py
Created March 8, 2019 04:05
Utility script for generating TPATF and TPAPF fingerprints from SMILES strings
# Utility script for feature generation
# Md Mahmudulla Hassan
# The University of Texas at El Paso
# Last Modified: 12/19/2018
import os
from rdkit import Chem
from rdkit.Chem import AllChem
import tempfile
import shutil