Commit b2b61237 authored by Bharath Ramsundar's avatar Bharath Ramsundar
Browse files

Hacking on boxes

parent b6dd864a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ import logging
import tempfile
import numpy as np
from subprocess import call
from scipy.spatial import ConvexHull
from deepchem.feat.fingerprints import CircularFingerprint
from deepchem.models.sklearn_models import SklearnModel
from deepchem.utils import rdkit_util
+1 −5
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ def vina_repulsion(d):

  Parameters
  ----------
  d: jax.np.ndarray
  d: np.ndarray
    Of shape `(N, M)`.

  Returns
@@ -120,7 +120,6 @@ def vina_hbond(d):
      np.where(d < 0, (1.0 / 0.7) * (0 - d), np.zeros_like(d)))
  return out_tensor


def vina_gaussian_first(d):
  """Computes Autodock Vina's first Gaussian interaction term.

@@ -140,7 +139,6 @@ def vina_gaussian_first(d):
  out_tensor = np.exp(-(d / 0.5)**2)
  return out_tensor


def vina_gaussian_second(d):
  """Computes Autodock Vina's second Gaussian interaction term.

@@ -160,7 +158,6 @@ def vina_gaussian_second(d):
  out_tensor = np.exp(-((d - 3) / 2)**2)
  return out_tensor


def weighted_linear_sum(w, x):
  """Computes weighted linear sum.

@@ -173,7 +170,6 @@ def weighted_linear_sum(w, x):
  """
  return np.sum(np.dot(w, x))


def vina_energy_term(coords1, coords2, weights, wrot, Nrot):
  """Computes the Vina Energy function for two molecular conformations