[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What do you use GNU Parallel for?

From: Ole Tange
Subject: Re: What do you use GNU Parallel for?
Date: Thu, 17 Jul 2014 01:32:54 +0200

On Wed, Jul 16, 2014 at 8:34 PM, Ole Tange <> wrote:
> I am always looking for neat examples to use GNU Parallel for.

For bioinfomatics you have a pair of files: foo_R1.txt.gz and
foo_R2.txt.gz, and you often want to process them together. Here a
program is called that takes the uncompressed foo_R1/R2 and produce

parallel --xapply --dry-run 'python <(zcat {1}) <(zcat
{2}) |gzip > {=1 s/_R1.txt.gz/_interleave.txt.gz/=}' ::: *R1.txt.gz
::: *R2.txt.gz

Note how you can replace the _R1.txt.gz from argument one using perl.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]