Question: how to run pybedtools.bedtool.BedTool.cluster?
0
gravatar for tinkuhim007
12 weeks ago by
tinkuhim0070 wrote:

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 • 126 views
ADD COMMENTlink modified 12 weeks ago by GenoMax96k • written 12 weeks ago by tinkuhim0070
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1009 users visited in the last hour
_