A research method used to determine the macromolecular structure that a chemical compound (e.g., an inhibitor) must have in order to fit (in a lock-and-key fashion) into a receptor. For example, a pain inhibitor compound blocking a pain receptor on the surface of a cell.