BSHMM : A model for Markov-based DNA methylation profiling and case study in diatoms.