Entering edit mode
5.0 years ago
debitboro
▴
270
Dear Biostars,
How can I append sequences of two fastq files ?
Suppose we have two fastq files:
**file1.fastq**
@HEADER
CTCAGNTTGG
+
AAAAA#EEEE
@HEADER
GTGAGTTTAG
+
AA<AA#EE<E
**file2.fastq**
@HEADER
CTTTA
+
#EEEA
@HEADER
GTGAG
+
A#E<E
**result.fastq = append file2.fastq to file1.fastq**
@HEADER
CTTTACTCAGNTTGG
+
#EEEAAAAAA#EEEE
@HEADER
GTGAGGTGAGTTTAG
+
A#E<EAA<AA#EE<E
How can I do that ?
Why do you need to do this?
To do:
Thank you for your answer, but that is not what I'm looking for. I think the question is clearly formulated: I need to prefix the reads of the first file with the reads of the second file.
Ah, I see, sorry.
But then, my question is even more pertinent: why do you need to do this?
For a quick and dirty concatenation:
I want to concatenate only the read sequences and quality sequences not all the components of a record. I need to do that to adapt my file as an input for in-house script for UMI deduplication.
Then you should script yourself a solution with awk, perl or python, it shouldn't be too difficult.