functions for analyzing genomic regions