cdkr icon indicating copy to clipboard operation
cdkr copied to clipboard

SMILES parsing doesn't set atom types

Open rajarshi opened this issue 5 years ago • 1 comments

Atom types can be perceived using the following code

acm <- J("org.openscience.cdk.tools.manipulator.AtomContainerManipulator")
acm$percieveAtomTypesAndConfigureAtoms(mol)

This does not happen by default when parsing a SMILES or reading an SDF. Either provide this as a function (e..g, set.atom.types) or else include in the molecule parsing/loading function as a optional parameter.

In both cases, should support the possibility of different atom typing schemes

rajarshi avatar Sep 21 '20 12:09 rajarshi

There was a function, do.typing that implemented this. Renamed to set.atom.types and updated the code to use J notation. Currently only supports CDK atom types

rajarshi avatar Sep 21 '20 12:09 rajarshi