regHMM: encode regulatory network transitions as HMMs