I have an SDF of docking results generated in smina (spin-off of AutoDock VINA with the ability to handle SDFs). Each compound has five poses that were generated, but I need to get rid of all but the best-scoring one for each compound. E.g. for compound #1654, five poses are returned with energies of -8.0, -7.9, -7.8, -7.7, and -.7.6. I just want to keep the one that scored -8.0. Is there a way to do this in Maestro, Discovery Studio, MOE, or OpenBabel? Or does anyone have a shell script to do this?