This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to run pybedtools.bedtool.BedTool.cluster?

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

pybedtools python

0 answers

No answers yet.

Log in to answer this question.