how to run pybedtools.bedtool.BedTool.cluster?
0
0
Entering edit mode
4.0 years ago

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 • 709 views
ADD COMMENT

Login before adding your answer.

Traffic: 1800 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6