I have a folder full of 1000s of mol files which I would like to be converted to pdb files. I have tried using open babel, but that is throwing me errors. Here is the command I tried:
babel *.mol -opdb -m --gen3d
It manages to convert a few files, but eventually fails after 10 odd files. Here are the warnings and errors it threw me.
WARNING: too small "scale" at Newton2NumLineSearch
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: too small "scale" at Newton2NumLineSearch
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: too small "scale" at Newton2NumLineSearch
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength inf to 5e+70
WARNING: damped steplength 0.00606406 to 0.00502046
==============================
*** Open Babel Warning in Expand
Alias R was not chemically interpreted
Segmentation fault (core dumped)
Is there any way to fix this error? If not, what are the other methods that I can use?
mol2 files are not mol files. The reported messages look like the inputs are 2D mol files, and there are failures to generate 3D coordinates. Converted 3D mol2 to and from 3D pdb is a trivial exercise in comparison.
If the compounds are reasonably well known (i.e. they are in PubChem), I would suggest to download 3D coordinate files from PubChem, or, even better because these are reasonably high-level QM results, from PubChemQC.