[Rdkit-discuss] SDMolSupplier doesn't support file handlers?

2014-01-31 Thread Michał Nowotka
Hi, I need to process large, compressed SDF file. I was planning to use SDMolSupplier but there is a problem: 1. I can't just pass a file name, as this is compressed file and if I understand, SDMolSupplier doesn't support compressed files. 2. I can't read a file to string and then call setData()

Re: [Rdkit-discuss] SDMolSupplier doesn't support file handlers?

2014-01-31 Thread Adrian Jasiński
Example from tutorial: import gzip inf = gzip.open('data/actives_5ht3.sdf.gz') gzsuppl = Chem.ForwardSDMolSupplier(inf) ms = [x for x in gzsuppl if x is not None] len(ms)180 pozdrawiam Adrian Jasiński 2014-01-31 Michał Nowotka mmm...@gmail.com: Hi, I need to process large,

Re: [Rdkit-discuss] SDMolSupplier doesn't support file handlers?

2014-01-31 Thread Michał Nowotka
I'm sorry I've overlooked this. Thank you for help. On Fri, Jan 31, 2014 at 2:58 PM, Adrian Jasiński jasinski.adr...@gmail.com wrote: Example from tutorial: import gzip inf = gzip.open('data/actives_5ht3.sdf.gz') gzsuppl = Chem.ForwardSDMolSupplier(inf) ms = [x for x in gzsuppl if x is not