Last active
August 29, 2015 14:02
-
-
Save nuada/6bb08c5fd5232384ab28 to your computer and use it in GitHub Desktop.
Cleanup BED: sort and merge intervals, extract gene symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bedtools sort -i foo.bed | bedtools merge -i - -nms | sed -e 's/\r//g' | awk -F '\t' '{ split($4, name, "."); print $1 FS $2 FS $3 FS name[1] }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment