rdkit / mmpdb

A package to identify matched molecular pairs and use them to predict property changes.
Other
197 stars 55 forks source link

Enable Specification of exchange Fragment in mmpdb transform #16

Open KramerChristian opened 4 years ago

KramerChristian commented 4 years ago

When mmpdb transform is called, the algorithm currently fragments the input molecule and searches for replacements for all fragments in the DB. This can then be filtered by the substructure filter and others, but fundamentally all fragments are searched. A huge speedup can potentially be gained if the user could specify the fragment she wants to exchange in the query.

This requires a check whether the fragment as specified exists at all, potentially some fragment cleanup (e.g. specification of the attachment atoms), and the a filter to the specific fragment after fragmentation of the input compound