Hi Greg, Thanks for the python-full reply!
> # let's test the reaction to make sure it works. > # due to a (already reported) bug in the way atom properties > are handled, nrxn cannot be directly used, # so we use a hack > and reparse it: > >>> nrxn = AllChem.ReactionFromSmarts(AllChem.ReactionToSmarts(nrxn)) > >>> nrxn.Validate() > # now we can run a molecule through to make sure it works: > >>> nmol = Chem.MolFromSmiles('c1ccccc1C') nps = > >>> nrxn.RunReactants((nmol,)) print Chem.MolToSmiles(nps[0][0]) > # output is: BrCc1ccccc1 > > Is that what you're looking for? It certainly allows me to do what I want - which is get a mapped RXN out. And this can even be done with coordinates - which I have added below as a reminder to anyone (which included me until about 10 mins ago!) who had forgotten: AllChem.Compute2DCoordsForReaction(nrxn) rxnBlock = AllChem.ReactionToRxnBlock(nrxn) So Thanks very much! : ) - and thanks for the reminder about sanitizing products from reactions... > The molecules that come back from reactions have not been > sanitized, so all you need to do is add a call to > Chem.SanitizeMol first: > > >>> Chem.SanitizeMol(prod) Kind regards James ______________________________________________________________________ PLEASE READ: This email is confidential and may be privileged. It is intended for the named addressee(s) only and access to it by anyone else is unauthorised. If you are not an addressee, any disclosure or copying of the contents of this email or any action taken (or not taken) in reliance on it is unauthorised and may be unlawful. If you have received this email in error, please notify the sender or postmas...@vernalis.com. Email is not a secure method of communication and the Company cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please check this email for virus infection for which the Company accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated, any views or opinions presented are solely those of the author and do not represent those of the Company. The Vernalis Group of Companies Oakdene Court 613 Reading Road Winnersh, Berkshire RG41 5UA. Tel: +44 118 977 3133 To access trading company registration and address details, please go to the Vernalis website at www.vernalis.com and click on the "Company address and registration details" link at the bottom of the page.. ______________________________________________________________________ ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss