Entering edit mode
4.0 years ago
tinkuhim007
•
0
Hello All, I want to run below bedtool cluster command using python package 'pybedtools' (https://daler.github.io/pybedtools/autodocs/pybedtools.bedtool.BedTool.cluster.html). Please help me for the same.
Bedtools command
bedtools cluster -d 2 -i test.bed >cluster.bed
Looking for pybedtool commnads:
Input<bed file>:
chr1 0 8
chr1 10 15
chr1 20 23
chr1 30 40
Output<bedfile>:
chr1 0 8 1
chr1 10 15 1
chr1 20 23 2
chr1 30 40 3
Thanks Himanshu