Merge two .fastq files from two different lane
2
0
Entering edit mode
2.8 years ago
k.kathirvel93 ▴ 310

Hi Every One,

How to Merge two .fastq files from two different lane using cat command with bash for loop. My file name looks like this

> RFNB-2939_S193_L001_R1_001.fastq,  RFNB-2939_S193_L002_R1_001.fastq, 
> RFNB-2951_S194_L001_R1_001.fastq,  RFNB-2951_S194_L002_R1_001.fastq.

Thanks in advance

loop NGS merge fastq cat • 827 views
ADD COMMENT
0
Entering edit mode

yes, and the issue/problem being ?

ADD REPLY
1
Entering edit mode
2.8 years ago
GenoMax 147k

from two different lane using cat command with bash for loop

Answers here: Concatenating fastq.gz files across lanes

ADD COMMENT
0
Entering edit mode
2.8 years ago

that is what cat does, concatenates

Concatenate a,b into c

cat a b > c

in your case:

cat RFNB-2939_S193_L001_R1_001.fastq RFNB-2939_S193_L002_R1_001.fastq > RFNB-2939_S193.fq 

cat RFNB-2951_S194_L001_R1_001.fastq RFNB-2951_S194_L002_R1_001.fastq > RFNB-2951_S194.fq
ADD COMMENT

Login before adding your answer.

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