A pattern of expression of a set of genes whose products somehow contribute to a function in a cell or organism.