Functions to analysis WGBS