Re: [Open Babel] SDF file - meta data ignored on conversion

2019-01-31 Thread Craig James
See attached Perl program. If you can run a Perl program, it does exactly what you need, and a few more things too. Craig On Thu, Jan 31, 2019 at 12:03 PM gehtalles wrote: > I got a massive SDF file with some 300k structures I need to split into > smaller files > > I tried > > babel infile.sdf

Re: [Open Babel] SDF file - meta data ignored on conversion

2019-01-31 Thread Geoffrey Hutchison
You want to use the "copy" format: https://openbabel.org/docs/dev/FileFormats/Copy_raw_text.html e.g. obabel infile.sdf -O outfile.sdf -ocopy -f 1 -l 1000 Hope that helps, -Geoff --- Prof. Geoffrey Hutchison Department of Chemistry University of Pittsburgh tel: (412) 648-0492 email:

[Open Babel] SDF file - meta data ignored on conversion

2019-01-31 Thread gehtalles
I got a massive SDF file with some 300k structures I need to split into smaller files I tried babel infile.sdf -isdf -osdf -f 1 -l 1000 -O outfile.sdf but all meta data defined in > data content are discarded in the outfile. Is there an option I missed to include them in the new file?