functions for Epigeonmic analysis