Gene expression based inference of drug resistance in cancer