functions for edgeR-AI routine