Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
CLUSTAL
0ANNOTATION/1-2208 B1N---B1N~B1C-------B1C--------B1~B2-------B2---------B2~B3-
AGC_AKT1/150-408 FEYL----------------KLLGKGT----------------FGKVILVKE--ka----
AGC_AKT2/152-409 FDYL----------------KLLGKGT----------------FGKVILVRE--ka----
AGC_AKT3/148-405 FDYL----------------KLLGKGT----------------FGKVILVRE--ka----
AGC_CDC42BPA/77-343 FEIL----------------KVIGRGA----------------FGEVAVVKL--kn----
AGC_CDC42BPB/76-342 FEII----------------KVIGRGA----------------FGEVAVVKM--kn----
AGC_CDC42BPG/71-337 FEIL----------------KVIGRGA----------------FGEVTVVRQ--rd----
AGC_CIT/97-360 FEVR----------------SLVGCGH----------------FAEVQVVRE--ka----
@ljmartin
ljmartin / smooth_one.py
Created July 4, 2022 03:32
a function that looks like y=x at a distance, but smoothly goes to 1 instead of 0.
def f(x):
return (x**3 + x**2 + x + 1) / (x**2 + x + 1)
x = np.linspace(0,10,100)
plt.plot(x, f(x))
plt.plot(x,x)
@ljmartin
ljmartin / rankingGeometric.ipynb
Created November 8, 2022 22:51
modeling ability to rank with pymc3 using geometric distribution
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
prot_dons = np.array(pocket.GetSubstructMatches(HDonorSmarts)).flatten()
prot_accs = np.array(pocket.GetSubstructMatches(HAcceptorSmarts)).flatten()
lig_dons = np.array(ligand.GetSubstructMatches(HDonorSmarts)).flatten()
lig_accs = np.array(ligand.GetSubstructMatches(HAcceptorSmarts)).flatten()
def unit_vector(vector):
""" Returns the unit vector of the vector. """
return vector / np.linalg.norm(vector)