Multi Thread Bedtools
3
3
Entering edit mode
12.9 years ago

Hi,

Is there a multi thread version of bedtools ? or is this feature in development ?

Thanks,

N.

bedtools parallel • 16k views
ADD COMMENT
1
Entering edit mode

Perhaps GNU parallel and bedtools?

ADD REPLY
0
Entering edit mode

I think I will write a little perl script to divide the gff file into multiple gff files (one gff file per feature) and execute multiple threads (one thread per gff file) in parallel. Sounds good no ?

ADD REPLY
0
Entering edit mode

You might consider pybedtools instead.

ADD REPLY
8
Entering edit mode
12.9 years ago

Bedtools is currently not multi-threaded and won't be for the foreseeable future. Multi-threading typically yields performance gains when the relevant data structures are stored in memory, so that the gains of additional threads are not eliminated by I/O constraints. In contrast, most of the bedtools algorithms read intervals from the driver (A) file line by line from disk in order to minimize memory consumption (e.g., loading a BAM file into memory is not advisable). This restriction, combined with the fact that, for many cases (e.g. sorted BAM), we really need the output to preserve the order of the original input. This poses additional restrictions on multi-threading.

That said, I have been working on scalable new algorithms for both distributed computing environments (clusters) and shared memory systems such as GPUs.

If anyone has the time and ability to effectively multi-thread the existing tools, I would be more than happy to collaborate!

ADD COMMENT
2
Entering edit mode
12.9 years ago
Ryan Dale 5.0k

The third pybedtools example shows how to do this with BEDTools in Python, but it's limited to embarrassingly parallel problems.

ADD COMMENT
1
Entering edit mode
12.9 years ago

Bedtools Future section

This was last updated more than a year ago though.

ADD COMMENT
0
Entering edit mode

ouch. I think I should rename that page as "Past work"

ADD REPLY

Login before adding your answer.

Traffic: 1904 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