Pass the ignoreDuplicates flag to the bamCorrelate function. It's not tested yet, I'm lacking test data on the train.
merged with branch ignore duplicates