A new machine-learning algorithm is assisting researchers to determine which existing drugs can be repurposed effectively for other conditions.