Take one protein-ligand complex (PDB_id: 1eby) as an example.
http://mgltools.scripps.edu/downloads
./smina.static -r 1eby_protein.pdbqt -l 1eby_ligand.pdbqt --local_only --scoring Lin_F9 -o 1eby_optimized.pdb
grep 'Affinity' 1eby_optimized.pdb | awk '{print $3}'
./smina.static -r 1eby_protein.pdbqt -l 1eby_ligand.pdbqt --autobox_ligand 1eby_ligand.pdbqt --scoring Lin_F9 -o 1eby_flexRedock.pdb
grep -m1 'Affinity' 1eby_flexRedock.pdb | awk '{print $3}'
python split_docked.py 1eby_flexRedock.pdb 1eby_flexRedock
./calc_rmsd_for_pose.sh 1eby_flexRedock/1eby_flexRedock_01.pdb 1eby_ligand.mol2
E2E docking protocol combines ligand conformer generation and flexible docking
babel -imol2 1eby_ligand.mol2 -osdf 1eby_ligand_2D.sdf --gen2D
babel -isdf 1eby_ligand_2D.sdf -osdf 1eby_ligand_3D.sdf --gen3D
obabel 1eby_ligand_3D.sdf -O conformers.sdf --conformer --nconf 10 --score rmsd --writeconformers
python split_sdf.py conformers.sdf 1eby_conformers
/E2E_docking.sh
grep -m1 'Affinity' 1eby_E2E/*.pdb | sort -nk3 | head -n 1 | awk '{print $3}'
./GetSplit.sh
./calc_rmsd_for_pose.sh 1eby_E2E_top1.pdb 1eby_ligand.mol2