Created
August 25, 2015 08:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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