Discovery of drug mode of action and drug repositioning from transcriptional responses