original_docstring:  For every pair of residues in the structure, find if the residues
      or any of the alternate locations make contact.  If so add them to
      the list of contacts.
      [NOTE: not sure if this should be a list or a dictionary...] 
docstring: For every pair of residues in the structure, find if the residues
  or any of the alternate locations make contact.  If so add them to
  the list of contacts.
  [NOTE: not sure if this should be a list or a dictionary...]
docstring_tokens: For every pair of residues in the structure find if the residues or any of the alternate locations make contact . If so add them to the list of contacts . [ NOTE : not sure if this should be a list or a dictionary ... ]
code: def calculate_contacts(structure):
      """ For every pair of residues in the structure, find if the residues
      or any of the alternate locations make contact.  If so add them to
      the list of contacts.
      [NOTE: not sure if this should be a list or a dictionary...] """
      clash=-2
      for atom in structure.get_atoms():
          for btom in structure.get_atoms():
              distvec=list(np.array(btom.get_coord()) - np.array(atom.get_coord()))
              print(magnitude(distvec))
              print('---')
              if magnitude(distvec)<=4:
                  clash=clash+1
                  print('Clash Found')
                  print(clash)
              else:
                  pass
      return clash
code_tokens: def calculate_contacts ( structure ) : clash = - 2 for atom in structure . get_atoms ( ) : for btom in structure . get_atoms ( ) : distvec = list ( np . array ( btom . get_coord ( ) ) - np . array ( atom . get_coord ( ) ) ) print ( magnitude ( distvec ) ) print ( '---' ) if magnitude ( distvec ) <= 4 : clash = clash + 1 print ( 'Clash Found' ) print ( clash ) else : pass return clash
short_docstring: For every pair of residues in the structure, find if the residues
  or any of the alternate locations make contact.
short_docstring_tokens: For every pair of residues in the structure find if the residues or any of the alternate locations make contact .
comment: """ For every pair of residues in the structure, find if the residues
      or any of the alternate locations make contact.  If so add them to
      the list of contacts.
      [NOTE: not sure if this should be a list or a dictionary...] """