Skip to content

Instantly share code, notes, and snippets.

@bluegenes
Created October 30, 2018 21:07
Show Gist options
  • Save bluegenes/f495628ace8b16e845780009255e0f41 to your computer and use it in GitHub Desktop.
Save bluegenes/f495628ace8b16e845780009255e0f41 to your computer and use it in GitHub Desktop.
fix ENA fastq headers for trinity
for f in *fq.gz; do
echo 'starting on file' $f
cp "$f" "$f~" &&
gzip -cd "$f~" | sed 's/^@ERR\S*\s/@/' | gzip > "$f"
rm "$f~"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment