Using Parallel GNU
0
0
Entering edit mode
4.1 years ago
whb ▴ 60

Hi I am a new user of parallel. I am trying to use it instead of loops to do fastq file trimming using Agilent Agent trimmer. When I run it one by one without using parallel, output is one R1 and one R3 file for each sample as expected. But using the code below produced 4 R1 and 4 R3 files for each sample. Could someone tell me what I have done wrong please?

Input:

cat metatry.txt | parallel java -Xmx5G -jar $Trimmer -fq1 {}R1_001.fastq.gz -fq2 {}R3_001.fastq.gz -xt -out_loc /Trimmed/

Output:

trim -fq1 153_D1_S11_R1_001.fastq.gz -fq2 153_D1_S11_R3_001.fastq.gz -xt -out_loc /Trimmed/

Trimmed file created:
    /Trimmed/153_D1_S11_R1_001.1607137111246_Cut_0.fastq.gz
    /Trimmed/153_D1_S11_R3_001.1607137111246_Cut_0.fastq.gz
For Research Use Only. Not for use in diagnostic procedures
(c) Agilent Technologies, Inc. 2016-2019. Version: 2.0.2. Please report problems to informatics_support@agilent.com

cd /Trimmed/ 

153_D1_S9_R1_001.1607136132795_Cut_0.fastq.gz
153_D1_S9_R1_001.1607136580643_Cut_0.fastq.gz
153_D1_S9_R1_001.1607136902485_Cut_0.fastq.gz
153_D1_S9_R1_001.1607137111246_Cut_0.fastq.gz
153_D1_S9_R3_001.1607136132795_Cut_0.fastq.gz
153_D1_S9_R3_001.1607136580643_Cut_0.fastq.gz
153_D1_S9_R3_001.1607136902485_Cut_0.fastq.gz
153_D1_S9_R3_001.1607137111246_Cut_0.fastq.gz
parallel unix trimming • 868 views
ADD COMMENT
0
Entering edit mode

The output of head metatry.txt would be useful here.

ADD REPLY
0
Entering edit mode

Show us the output of parallel --dry-run ...

ADD REPLY

Login before adding your answer.

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