partial implementation of deseq functionality.  For safe keeping.