A unified approach to computational drug discovery