Module salt_bridge
Find salt-bridge interactions.
  Examples
    Find all salt bridge interactions within a protein:
   st = StructureReader("protein.maegz").next()
   for (atom1, atom2) in SaltBridgeFinder.find(st):
       print "Salt bridge between atoms %i and %i" % (atom1, atom2)
    Find all salt bridges within a single protein chain:
   st = StructureReader("protein.maegz").next()
   atoms = st.chain["C"].getAtomIndices()
   for (atom1, atom2) in SaltBridgeFinder.find(st, atoms):
       print "Salt bridge between atoms %i and %i" % (atom1, atom2)
    Find all salt bridges between a protein and a ligand:
   reader = StructureReader("protein_and_ligand.maegz")
   prot = reader.next()
   lig = reader.next()
   for (atom1, atom2) in SaltBridgeFinder.find(prot, struc2=lig):
       print "Salt bridge between atoms %i and %i" % (atom1, atom2)
    |  | DEFAULT_MAX_DIST = 4.0 | 
    |  | __package__ = 'schrodinger.structutils.interactions' | 
| 
  | get_salt_bridges(struc1,
        group1=None,
        struc2=None,
        group2=None,
        cutoff=5,
        order_by=<OrderBy.AnionCation: 1>)
   |  |  Calculate all salt bridges within or between the specified atoms.  If 
  struc2 or group2 are given, then this function will return salt bridges 
  between the two structures/groups of atoms.  If neither struc2 nor group2
  are given, then this function will return salt bridges within a single 
  structure/group of atoms. 
    Parameters:
        struc1(schrodinger.structure.Structure) - The structure to analyzegroup1(list) - The list of atom indices instruc1to analyze.  If 
          not given, all atoms in struc1 will be analyzed.struc2(schrodinger.structure.Structure) - The second structure to analyze.  Ifgroup2is given
          butstruc2is not, thenstruc1will be 
          used.group2(list) - The list of atom indices instruc2to analyze.  Ifstruc2is given butgroup2is not, then
          all atoms instruc2will be analyzed.cutoff(float) - The maximum distance allowed for salt bridgesorder_by(OrderBy) - How the returned salt bridge atom should be ordered.  IfOrderBy.AnionCation, then each salt bridge 
          will be returned as a tuple of (anion atom, cation atom).  IfOrderBy.InputOrder, then each salt 
          bridge will be returned as a tuple of (atom from struc1/group1, 
          atom from struc2/group2).Returns: listA list of salt bridges, where each salt bridge is represented by 
          a tuple of two schrodinger.structure._StructureAtom
          objects. | 
 
| 
  | _get_wrapped_sb_list(struc1,
        group1,
        struc2,
        group2,
        cutoff)
   |  |  Get the salt bridge list returned by schrodinger.infra.structure.get_salt_bridges. 
    Parameters:
        struc1(schrodinger.structure.Structure) - The structure to analyzegroup1(list) - The list of atom indices instruc1to analyze.  If 
          not given, all atoms in struc1 will be analyzed.struc2(schrodinger.structure.Structure) - The second structure to analyze.  Ifgroup2is given
          butstruc2is not, thenstruc1will be 
          used.group2(list) - The list of atom indices instruc2to analyze.  Ifstruc2is given butgroup2is not, then
          all atoms instruc2will be analyzed.cutoff(float) - The maximum distance allowed for salt bridgesReturns: listA list of salt bridges, where each salt bridge is represented by 
          a tuple of two schrodinger.infra.structure.StructureAtom 
          objects in (anion, cation) order. | 
 
| 
  | _convert_group(group,
        struc)
   |  |  Convert a list of atom indices to a bitset. 
    Parameters:
        group(list) - A list of atom indices.  If None, the bitset will contain all 
          atoms instruc.struc(schrodinger.structure.Structure) - The structure that thegroupatom indices refer toReturns: mmbitset.BitsetThe bitset | 
 
| 
  | _to_input_order(salt_bridge,
        struc1,
        bs1)
   |  |  Switch the salt bridge tuple from (anion, cation) order to input 
  order. 
    Parameters:Returns: tupleThe re-ordered salt bridge, as a tuple of schrodinger.structure._StructureAtom
          objects. |