Skip to content

Instantly share code, notes, and snippets.

@arq5x
Created April 4, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arq5x/42ff259f608a8ddfcb66 to your computer and use it in GitHub Desktop.
Save arq5x/42ff259f608a8ddfcb66 to your computer and use it in GitHub Desktop.
minimum tiling path
cat ivl.bed
chr1 10 30
cat data.bed
chr1 9 20 d1
chr1 12 18 d2
chr1 12 20 d3
chr1 15 16 d4
chr1 25 40 d5
chr1 26 30 d6
bedtools intersect -a ivl.bed -b data.bed -wo
chr1 10 30 chr1 9 20 10
chr1 10 30 chr1 12 18 6
chr1 10 30 chr1 12 20 8
chr1 10 30 chr1 15 16 1
chr1 10 30 chr1 25 40 5
chr1 10 30 chr1 26 30 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment