reverse_locations_if_needed function

Reverse modification locations if needed (merge_methylation_with_metadata() helper)