Functions to support running of Matrix-eQTL analysis pipeline. This includes support for adding principle components as covariates and determining the optimal number of principal components to include.