Closed raysinensis closed 6 years ago
adding a step to check at the end of bed_slop()
fixes the issue
res <- res %>% mutate(temp.start = start, temp.end = end) %>%
mutate(start = ifelse(temp.start - temp.end < 0, temp.start, temp.end),
end = ifelse(temp.start - temp.end < 0, temp.end, temp.start)) %>%
select(-temp.start,-temp.end)
start and end not reversed when crossover occurs
Created on 2018-01-19 by the reprex package (v0.1.1.9000).