30bce6638a5840e6a67f0d996c6c51b809cd5c0c,chemml/chem/molecule.py,Molecule,to_smiles,#Molecule#,421
Before Change
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)
def _to_smiles_rdkit(self, **kwargs):
This internal function creates and stores the SMILES string for rdkit molecule.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: 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_smarts
Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_samples_by_string