https://groups.google.com/d/msg/macs-announcement/JkufzGpUNRk/kUx0z2M2b_cJFor each peak region, MACS calculates the a local lambda for poisson
distribution based on the control tags within the 1kb, 5kb and
10kb(1/5/10k are parameters that you can modify) nearby regions to
consider the local fluctuations and biases. The local lambda is the
maximum of the averages of tags for 1/5/10 kb regions and a whole [constant]
genome background. Then this local lambda is used to calculate the p-
value of poisson distribution. If there is no control data, the ChIP
data will be used instead, where the 1kb region is not considered. The
fold-enrichment is also calculated using local lambda.