Using a machine-learning algorithm, researchers can predict interactions that could interfere with a drug’s effectiveness.