Tabea-K
8/25/2015 - 8:17 AM

Prints the header line and lengths of sequences in a fastq file in a tab-separated format. Example for output: @seq1 2324 @seq2 1365

Prints the header line and lengths of sequences in a fastq file in a tab-separated format. Example for output: @seq1 2324 @seq2 1365

awk '{if(NR % 4==1){printf $0"\t"}else if(NR % 4==2){print length($0)}}'