Extracting longest read from fastq file
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
• 3,328 views
•
link
1 answer
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"
• 0 views
•
link
Log in to answer this question.
Try searching for
Extracting longest read from fastq file. I've found some good results.