Check for 2D in all the input PDBs and SDF converted.
If 2D, Warn User
3b. Do you want to convert to 3D?
Yes
i. obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff GAFF
If FASLE
ii. obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff MMFF94
If FALSE
iii. obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff gchemical
If FASLE
iv. obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff UFF
If FALSE
Structure could not be converted to 3D. STOP DOCKING.
Convert SDF to PDB -- no geometry optimization and no force field assignment.
obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb
Check for 2D in all the input PDBs and SDF converted.
If 2D, Warn User 3b. Do you want to convert to 3D? Yes i.
obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff GAFF
If FASLE ii.obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff MMFF94
If FALSE iii.obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff gchemical
If FASLE iv.obabel -isdf Ganciclovir-d5\ CID_136219948.sdf -opdb -OGan.pdb --gen3D --minimize --ff UFF
If FALSE Structure could not be converted to 3D. STOP DOCKING.