Skip to content

Instantly share code, notes, and snippets.

@nh13
Last active January 12, 2021 01:38
Show Gist options
  • Save nh13/beae4393fd3c9ad75f514dfa092b6cce to your computer and use it in GitHub Desktop.
Save nh13/beae4393fd3c9ad75f514dfa092b6cce to your computer and use it in GitHub Desktop.
HARD TRIM
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