Topics: Life science. Biology. Biotechnology and Biomedical research. Bioinformatics and Computational Biology. Programming for Biologists. Lab protocols and methods. Paper reviews. Data science. Programming in R, C, C++, Perl, Python, Excel, basic and advanced Unix, shell scripting, awk scripting, vim editing, regular expressions. Custom script development.
Using bedtools closest feature you can get two closest intervals when comparing two bed files. Bedtools closest option will report closest interval that is either upstream or downstream. To get both upstream and downstream intervals, run bedtools twice with the following commands: