A common molecular-modeling task sounds simple: find the residues around a ligand. But a useful analysis often needs more than “everything nearby.” You may want residues rather than atoms, exclude particular amino acids, distinguish tight contacts from a broader pocket,…