Hi,
I was trying to merge a bed file which also has depth (I mean how many times was it seen on that bed file) information. I am only interested in one bed file not multiple files.
For example my bed file is something like this:
chr1 100 200
chr1 120 130
chr1 170 180
chr1 175 180
What I want is this:
chr1 100 120 1
chr1 120 130 2
chr1 130 150 1
chr1 170 175 2
chr1 175 180 3
chr1 180 200 1
The closest thing I could have found was bedops -p partition but it wont give depth of it. Do you guys know if there is a tool or flag that I could have used to achieve that?
Thanks
very clever!
just for the sake of future readers, the content of
genome.txt
is simply:Thank you so much!