Extracting longest read from fastq file
1
0
Entering edit mode
6.1 years ago
KVC_bioinfo ▴ 590

Hello All,

I want to extract the longest read from a fastq file. I am not aware of any way to do it. Could someone help me here?

TIA

fastq • 2.7k views
ADD COMMENT
2
Entering edit mode

Try searching for Extracting longest read from fastq file. I've found some good results.

ADD REPLY
3
Entering edit mode
6.1 years ago
gunzip -c in.fq.gz | paste - - - - | awk -F '\t' '{L=length($2);if(L>M) {M=L;R=$0;}} END {print R;}' | tr "\t" "\n"
ADD COMMENT

Login before adding your answer.

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