The analysis of gene expression patterns to gain insight into biological processes or disease states.