I use SD files with new lines in the properties quite frequently (inherited from Pipeline Pilot's merge function) and I've never had a problem reading them. I've attached an SD file that works fine for me.
In [2]: suppl = Chem.SDMolSupplier('/Volumes/nfirth/tempf.sdf') In [3]: m = suppl[0] In [4]: t = m.GetProp('genNum') In [5]: print t 1 2 3 4 In [6]: print t.split('\n') ['1', '2', '3', '4'] So I guess the problem is in the writer? Best, Nick The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
tempf.sdf
Description: tempf.sdf
Nicholas C. Firth | PhD Student | Cancer Therapeutics The Institute of Cancer Research | 15 Cotswold Road | Belmont | Sutton | Surrey | SM2 5NG T 020 8722 4033 | E nicholas.fi...@icr.ac.uk | W www.icr.ac.uk | Twitter @ICRnews Facebook www.facebook.com/theinstituteofcancerresearch Making the discoveries that defeat cancer |
------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss