This function identifies the delay distance at which the cross-correlations are maximized.
This distance can then be used as an estimate of the average fragment length, for use in directional extension during read counting. In some datasets, identification of the maxima is confounded by a phantom peak at the read length.
This can be overcome by ignoring the first ignore
delay distances, such that the distance corresponding to the true peak is used.
Obviously, this only works in TF experiments with moderate to strong enrichment, where a strong peak in the CCF profile is present.
The function may not perform sensibly in the presence of noisy profiles containing multiple local maxima.