Using chimera dockprep tool from command line

run dock prep from command line with:

chimera --nogui file.pdb dockprep.py outfilename.mol2
import chimera
from DockPrep import prep
models = chimera.openModels.list(modelTypes=[chimera.Molecule])
prep(models)
from WriteMol2 import writeMol2
writeMol2(models, "dp.mol2")
view raw dockprep.py hosted with ❤ by GitHub
If you want to ask me a question or leave me a message add @bougui505 in your comment.