# From bedtools “genomecov” back to .bed

I have the results of:

bedtools genomecov -d...


Output:

0
0
10
10
10
20
20


And i want to convert it back to bed file.

e.g.

chr1  1  2  0
chr1  3  5  10
chr1  6  7  20


Is there any tool that can sort this out or ishould make my own script?

• Welcome to Bioinformatics! This question might be improved with more information. Could you explain what sources have you looked in or which solutions didn't work? Many thanks! – llrs Nov 7 '18 at 13:38
• I have only checked bedtools suit but there is no function suitable for this. I wrote my own script for this job. – D Grigor Nov 7 '18 at 15:44
• Glad you found a way to solve your problem. In that case you could provide it as a solution for others to use! – llrs Nov 7 '18 at 15:47