On 25/10/2017 07:55, Sundar wrote:

Can anyone help me convert a single input (multimolecular) sdf file into
multiple pdb files with the molecule names (as seen in the sdf file) as
their file names instead of consecutively numbered file names?

Try:
 obabel manymols.sdf -O dummy.pdb --split

Each output file has a name in which 'dummy' is replaced by title of the molecule. (You can use -opdb to specify the output format, but OB uses the first extension for this format, which is .ent.)

The output file name can also be made from other properties of the molecule.

Read the description of --split:
 obabel -L split

Chris


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to