Re: [Open Babel] Add comments to output file

2014-07-22 Thread Jim Parker
Geoff, That works! Thanks. Cheers, --Jim On Sun, Jul 20, 2014 at 11:04 PM, Geoffrey Hutchison < geoff.hutchi...@gmail.com> wrote: > > But I would like to add comments, e.g. REMARK lines in the .pdb file > > These are set using OBPairData, so you'd want to add "REMARK" as the key > and then t

Re: [Open Babel] Add comments to output file

2014-07-20 Thread Geoffrey Hutchison
> But I would like to add comments, e.g. REMARK lines in the .pdb file These are set using OBPairData, so you'd want to add "REMARK" as the key and then the comments. For example with Pybel: http://openbabel.org/docs/dev/UseTheLibrary/Python_PybelAPI.html#pybel.MoleculeData mol = readfile(…..).