d54147be9745b2130a2e8f97a978a2cecd750a1d,deepchem/utils/rdkit_util.py,,add_hydrogens_to_mol,#Any#,33

Before Change


    fixer.addMissingAtoms()
    fixer.addMissingHydrogens(7.4)

    hydrogenated_io = StringIO()
    import simtk
    simtk.openmm.app.PDBFile.writeFile(fixer.topology, fixer.positions,
                                       hydrogenated_io)
    hydrogenated_io.seek(0)
    return Chem.MolFromPDBBlock(
        hydrogenated_io.read(), sanitize=False, removeHs=False)
  except ValueError as e:
    logging.warning("Unable to add hydrogens %s", e)
    raise MoleculeLoadException(e)

After Change


  ----
  This function requires RDKit and PDBFixer to be installed.
  
  return apply_pdbfixer(mol, hydrogenate=True)


def apply_pdbfixer(mol, add_missing=True, hydrogenate=True, pH=7.4,
                   remove_heterogens=True, is_protein=True):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: d54147be9745b2130a2e8f97a978a2cecd750a1d
Time: 2020-06-12
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/utils/rdkit_util.py
Class Name:
Method Name: add_hydrogens_to_mol


Project Name: nilearn/nilearn
Commit Name: fe2b71071f871294b869f0314f89e4ca02469ab7
Time: 2020-10-08
Author: jerome@dockes.org
File Name: nilearn/reporting/html_report.py
Class Name:
Method Name: _embed_img


Project Name: matthewwithanm/django-imagekit
Commit Name: 71c56c7d6affae7506b298ad7f7c3855ce0e93a9
Time: 2012-02-12
Author: matthew@exanimo.com
File Name: imagekit/models/fields.py
Class Name: ImageSpecFieldFile
Method Name: generate