New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bedtools merge output interval different by 1 in each direction #469
Comments
I get the same problem.
|
This is probably because BED is a zero-based half open interval (first base of chromosome = 0, end coordinate is not included in the interval): chr 421 421 ==> is a region of length 0, starts at base 422 (421 + 1) in the chromosome and ends before base 422 so your regions all have a length of 0 basepares. If you have BED regions which have a length of at least 1 basepare, it works fine.
|
Indeed:
|
I have number of files in delimited format: chromosome start end . I would like to merge overlapping intervals between files, keeping option min distance between intervals to be merged. I cat all files , sorted and applied bedtools merge with option -d. All good, but the problem I have is that when interval is of length 1, the output from bedtools merge outputs it as +1 -1 interval. For example:
my input: chr 421 421
my output" chr 420 422
The text was updated successfully, but these errors were encountered: