Scientists have been using a large database to develop algorithms to predict individual responses to a particular therapy before starting it.