Researchers in Whitehead Institute Member Richard Young’s lab and colleagues at MIT show that a machine learning model can predict which subcellular compartments a drug will concentrate in based on its chemical features. This could be used to design safer and more effective drugs, and to understand how subcellular compartments govern diverse biochemical processes.