class_docstr: A coordinate box that represents a block in space.
  
  Molecular complexes are typically represented with atoms as
  coordinate points. Each complex is naturally associated with a
  number of different box regions. For example, the bounding box is a
  box that contains all atoms in the molecular complex. A binding
  pocket box is a box that focuses in on a binding region of a protein
  to a ligand. A interface box is the region in which two proteins
  have a bulk interaction.
  
  The `CoordinateBox` class is designed to represent such regions of
  space. It consists of the coordinates of the box, and the collection
  of atoms that live in this box alongside their coordinates.
class_docstr_tok: ["A","coordinate","box","that","represents","a","block","in","space",".","Molecular","complexes","are","typically","represented","with","atoms","as","coordinate","points",".","Each","complex","is","naturally","associated","with","a","number","of","different","box","regions",".","For","example",",","the","bounding","box","is","a","box","that","contains","all","atoms","in","the","molecular","complex",".","A","binding","pocket","box","is","a","box","that","focuses","in","on","a","binding","region","of","a","protein","to","a","ligand",".","A","interface","box","is","the","region","in","which","two","proteins","have","a","bulk","interaction",".","The","`","CoordinateBox","`","class","is","designed","to","represent","such","regions","of","space",".","It","consists","of","the","coordinates","of","the","box",",","and","the","collection","of","atoms","that","live","in","this","box","alongside","their","coordinates","."]
docstr: Initialize this box.
  
  Parameters
  ----------
  x_range: Tuple[float, float]
      A tuple of `(x_min, x_max)` with max and min x-coordinates.
  y_range: Tuple[float, float]
      A tuple of `(y_min, y_max)` with max and min y-coordinates.
  z_range: Tuple[float, float]
      A tuple of `(z_min, z_max)` with max and min z-coordinates.
  
  Raises
  ------
  `ValueError` if this interval is malformed
docstr_tok: ["Initialize","this","box",".","Parameters","--","--","--","--","--","x_range",":","Tuple","[","float",",","float","]","A","tuple","of","`","(","x_min",",","x_max",")","`","with","max","and","min","x-coordinates",".","y_range",":","Tuple","[","float",",","float","]","A","tuple","of","`","(","y_min",",","y_max",")","`","with","max","and","min","y-coordinates",".","z_range",":","Tuple","[","float",",","float","]","A","tuple","of","`","(","z_min",",","z_max",")","`","with","max","and","min","z-coordinates",".","Raises","--","--","--","`","ValueError","`","if","this","interval","is","malformed"]
code: def __init__(
      self,
      x_range: Tuple[float, float],
      y_range: Tuple[float, float],
      z_range: Tuple[float, float],
  ):
      """Initialize this box.
  
      Parameters
      ----------
      x_range: Tuple[float, float]
          A tuple of `(x_min, x_max)` with max and min x-coordinates.
      y_range: Tuple[float, float]
          A tuple of `(y_min, y_max)` with max and min y-coordinates.
      z_range: Tuple[float, float]
          A tuple of `(z_min, z_max)` with max and min z-coordinates.
  
      Raises
      ------
      `ValueError` if this interval is malformed
      """
      if not isinstance(x_range, tuple) or not len(x_range) == 2:
          raise ValueError("x_range must be a tuple of length 2")
      else:
          x_min, x_max = x_range
          if not x_min <= x_max:
              raise ValueError("x minimum must be <= x maximum")
      if not isinstance(y_range, tuple) or not len(y_range) == 2:
          raise ValueError("y_range must be a tuple of length 2")
      else:
          y_min, y_max = y_range
          if not y_min <= y_max:
              raise ValueError("y minimum must be <= y maximum")
      if not isinstance(z_range, tuple) or not len(z_range) == 2:
          raise ValueError("z_range must be a tuple of length 2")
      else:
          z_min, z_max = z_range
          if not z_min <= z_max:
              raise ValueError("z minimum must be <= z maximum")
      self.x_range = x_range
      self.y_range = y_range
      self.z_range = z_range
  
file_path: deepchem/deepchem/utils/coordinate_box_utils.py
imports: from typing import List, Sequence, Tuple
  import numpy
  from scipy.spatial import ConvexHull
label_desc: Use image node_id 1 to create a new CoordinateBox object from inherited base classes: object with example: obj = CoordinateBox(x_range, y_range, z_range)