Re: [Rdkit-discuss] Do we have an exact implementation of Bemis-Murcko scaffolds in rdkit?

2021-04-26 Thread Greg Landrum
I'm not sure why you'd want to reimplement something that's already there, but if this works better for you... the easiest way to get a single function you could call would be to do something like: In [18]: def MolToGenericScaffold(mol): ...: return MurckoScaffold.MakeScaffoldGeneric(Murc

Re: [Rdkit-discuss] Do we have an exact implementation of Bemis-Murcko scaffolds in rdkit?

2021-04-26 Thread Francois Berenger
On 27/04/2021 10:12, Francois Berenger wrote: On 26/04/2021 23:35, Greg Landrum wrote: Hi Francois, The implementation which is there does, I believe, the right thing. However... first you need to find the Murcko Scaffold, then you can convert that scaffold to the generic form: In [5]: m = Ch

Re: [Rdkit-discuss] Do we have an exact implementation of Bemis-Murcko scaffolds in rdkit?

2021-04-26 Thread Francois Berenger
On 26/04/2021 23:35, Greg Landrum wrote: Hi Francois, The implementation which is there does, I believe, the right thing. However... first you need to find the Murcko Scaffold, then you can convert that scaffold to the generic form: In [5]: m = Chem.MolFromSmiles('CCc1ccc(O)cc1C(=O)C1CC1') In

Re: [Rdkit-discuss] Do we have an exact implementation of Bemis-Murcko scaffolds in rdkit?

2021-04-26 Thread Greg Landrum
Hi Francois, The implementation which is there does, I believe, the right thing. However... first you need to find the Murcko Scaffold, then you can convert that scaffold to the generic form: In [5]: m = Chem.MolFromSmiles('CCc1ccc(O)cc1C(=O)C1CC1') In [6]: scaff = MurckoScaffold.GetScaffoldForMo

[Rdkit-discuss] Do we have an exact implementation of Bemis-Murcko scaffolds in rdkit?

2021-04-26 Thread Francois Berenger
Hello, I am trying MurckoScaffold.MakeScaffoldGeneric(mol), but this keeps the side chains. While my understanding of BM scaffolds is that only rings and ring linkers should be kept. The fact that the rdkit implementation keeps the side chains makes Murcko scaffolds a much less powerful filter