Integrated analysis of patient gene expression data for precision medicine applications in breast and pancreatic cancer