Predicting the function of drug-like molecules methods and applications