Has anyone tried to run SNPEff, Bedtools or Prokka with GNU parallel or a similar batch engine?
2
1
Entering edit mode
7.1 years ago

Has anyone tried to run SNPEff, Bedtools, BEDOPS or Prokka with GNU parallel or a similar batch engine? I need some code samples and patterns/example, pls. Thx.

gnu parallel snpeff bedtools prokka • 1.6k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
2
Entering edit mode
7.1 years ago
5heikki 11k
#!/bin/bash

function doSomething(){
    program "$1"
}

export -f doSomething
find /place/with/input/files -name "*.txt" \
    | parallel -j 32 doSomething {}

GNU parallel is great for embarrassingly parallel problems..

ADD COMMENT
1
Entering edit mode
7.1 years ago

The GNU parallel manual is overwhelming, but you can solve your own question by just doing some reading.

Nevertheless, default gnu-parallel command for my applications:

ls *.vcf | parallel -j 8 'do snpeff stuff on file {}'
ADD COMMENT

Login before adding your answer.

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