How to run SNPEff jar for a batch of VCF files using GNU parallel tool?
0
0
Entering edit mode
6.9 years ago
oxfordsoccer ▴ 10

How to run SNPEff jar for a batch of VCF files (300 items) using GNU parallel tool? Need a code example. Found only one example somehow similar to my question https://stackoverflow.com/questions/28072857/s-gnu-parallel-execution-of-commands-from-file-few-at-a-time. Thx.

snpeff gnu parallel software variant calling bash • 2.4k views
ADD COMMENT
1
Entering edit mode

I think you need to use:

GNU parallel is a shell tool for executing jobs in parallel using one or more computers. A job can be a single command or a small script that has to be run for each of the lines in the input. The typical input is a list of files, a list of hosts, a list of users, a list of URLs, or a list of tables. A job can also be a command that reads from a pipe. GNU parallel can then split the input and pipe it into
commands in parallel.

Nice tutorial can be found:

https://davetang.org/muse/2013/11/18/using-gnu-parallel/

https://www.codeword.xyz/2015/09/02/three-ways-to-script-processes-in-parallel/

ADD REPLY
0
Entering edit mode

If you add an example of how you do it without GNU Parallel, then you may have more luck getting a usable answer.

ADD REPLY

Login before adding your answer.

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