30bce6638a5840e6a67f0d996c6c51b809cd5c0c,chemml/chem/molecule.py,Molecule,to_smiles,#Molecule#,421
Before Change
self._smiles = Chem.MolToSmiles(self.rdkit_molecule, **kwargs)
// arguments
self._default_smiles_args = {"isomericSmiles":True, "kekuleSmiles":False, "rootedAtAtom":-1, "canonical":True, "allBondsExplicit":False,
"allHsExplicit":False} //"doRandom":False
self._smiles_args = update_default_kwargs(self._default_smiles_args, kwargs,
self._to_smiles_core_names[0], self._to_smiles_core_docs[0])
def to_smarts(self, **kwargs):
After Change
// molecule must exist
engine = self._check_original_molecule()
if engine == "pybel":
smiles = self.pybel_molecule.write("smi").strip().split("\t")[0]
self._load_rdkit(smiles, "smiles", from_load=False)
self.to_smiles()
else:
self._to_smiles_rdkit(**kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: hachmannlab/chemml
Commit Name: 30bce6638a5840e6a67f0d996c6c51b809cd5c0c
Time: 2019-03-05
Author: mojtabah@buffalo.edu
File Name: chemml/chem/molecule.py
Class Name: Molecule
Method Name: to_smiles
Project Name: NifTK/NiftyNet
Commit Name: 45297dae864437ae83c524c71ecdcf9a7608ed0d
Time: 2017-12-11
Author: wenqi.li@ucl.ac.uk
File Name: doc/source/conf.py
Class Name:
Method Name:
Project Name: merenlab/anvio
Commit Name: ba28d2c3b268751efa5979144ec686b689158f63
Time: 2019-09-15
Author: a.murat.eren@gmail.com
File Name: anvio/taxoestimation.py
Class Name: TaxonomyEstimation
Method Name: __init__