
maximizeCcf(profile, ignore=100)
correlateReads
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.
correlateReads
x <- dnorm(-200:200/100) # Mocking up a profile.
maximizeCcf(x)
x2 <- x + dnorm(-50:250/10) # Adding a phantom peak
maximizeCcf(x2)
maximizeCcf(x2, ignore=0)
Run the code above in your browser using DataLab