bioawk output in original fastq format
1
0
Entering edit mode
4.1 years ago
weixiaokuan ▴ 100

Hi, I was trying to use bioawk to extract some matched sequences from a fastq file. However, the output is somehow tabular format of fastx with $name, $seq, $qual and $comment. Did anyone know if there is an option from bioawk which can make the output keep the original fastq 4 line format? I know I can use script to process the output to make it similar as original fastq format, but if bioawk has an option for such type output, it will be very nice. Thank you.

Xiaokuan

bioawk fastq • 1.9k views
ADD COMMENT
0
Entering edit mode

refer to post on searching fastq files: searching reads with a certain sequence in fastq file

ADD REPLY
0
Entering edit mode
2.9 years ago
bioawk -c fastx '{print "@"$name" "$comment"\n"$seq"\n+\n"$qual}' input.fq > output.fq

this should output a duplcate of the input, add more code to filter or modify any

ADD COMMENT

Login before adding your answer.

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