script to calculate average methylation levels across gene structures