Skip to content

Instantly share code, notes, and snippets.

@Tabea-K
Created August 25, 2015 08:17
Show Gist options
  • Save Tabea-K/9d25b3b878ae62e3af24 to your computer and use it in GitHub Desktop.
Save Tabea-K/9d25b3b878ae62e3af24 to your computer and use it in GitHub Desktop.
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)}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment