Last active
January 12, 2021 01:38
-
-
Save nh13/beae4393fd3c9ad75f514dfa092b6cce to your computer and use it in GitHub Desktop.
HARD TRIM
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
pigz -d -c in.fastq.gz | | |
| awk 'BEGIN {LN=0; } { if (LN == 1 || LN == 3) { print substr($0, 0, 26) } else { print $0 } ; if (LN == 3) { LN = 0 } else { LN++ } }' \ | |
| pigz -c - > out.fastq.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment