Re: [Rdkit-discuss] GetSubstructMatches() as smiles
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Paolo T. <pao...@gm...> - 2019-08-07 11:08:13
|
Hi Mel, You can use Chem.MolFragmentToSmiles(mol, match) where match is a tuple of atom indices returned by GetSubstructMatch(). Cheers, p. > On 7 Aug 2019, at 11:36, Melissa Adasme <mel...@gm...> wrote: > > Dear rdkitters, > > I'm trying to find substructures (query molecules built from SMARTS) matching my molecules (SMILES). I found the GetSubstructMatches() method which works pretty well returning the indices of matching atoms in my molecule. > > I wonder if there is a way to directly obtain the SMILES of the found substructures instead of the atom indexes or maybe a way to transform the indexes to smiles? > > Many thanks in advance! > Mel > > _______________________________________________ > Rdkit-discuss mailing list > Rdk...@li... > https://lists.sourceforge.net/lists/listinfo/rdkit-discuss |