You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we rely on OpenBabel to parse the SMARTS and give us the atoms of the corresponding fragments. We should also make an effort to support other APIs such as RDKit.
There is some code available in src/openbabelwrapper.py which could be used as a starting point.
I suppose something like which is easily testable depending only on the classes themselves.
classFragmentationBase(object):
""" A virtual class with all the support the fragmentation class needs except smarts handling """passclassOBFragmentation(FragmentationBase):
""" Make openbabel specific implementation of Fragmentation class """passclassRDKitFragmentation(FragmentationBase):
""" Make RDKit specific implementation of Fragmentation class """pass
some logic would then be built-in depending on what packages are available. Some things that the classes should provide:
Based on a smarts fragmentation pattern, yield list of fragments.
Calculate the charge of fragments in a somewhat consistent fashion
Perhaps we should start making SMARTS patterns for charges too. See ???
Initially we will ignore things like fragment grouping and so on.
The text was updated successfully, but these errors were encountered:
Currently we rely on OpenBabel to parse the SMARTS and give us the atoms of the corresponding fragments. We should also make an effort to support other APIs such as RDKit.
There is some code available in
src/openbabelwrapper.py
which could be used as a starting point.I suppose something like which is easily testable depending only on the classes themselves.
some logic would then be built-in depending on what packages are available. Some things that the classes should provide:
Initially we will ignore things like fragment grouping and so on.
The text was updated successfully, but these errors were encountered: