Last active
August 29, 2015 13:57
-
-
Save l-modolo/9550357 to your computer and use it in GitHub Desktop.
Only read with more than 20bp from a fastq
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 'BEGIN {OFS = "\n"} {header = $0 ; getline seq ; getline qheader ; getline qseq ; if (length(seq) >= 20){print header, seq, qheader, qseq}}' < input.fastq > output.fastq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment