Functions for routine microarray analysis