Skip to content

Instantly share code, notes, and snippets.

@danielecook
Last active February 11, 2019 16:04
Show Gist options
  • Save danielecook/b5d1e1e16dceb117fb915ce26ee29c64 to your computer and use it in GitHub Desktop.
Save danielecook/b5d1e1e16dceb117fb915ce26ee29c64 to your computer and use it in GitHub Desktop.
Extract all FASTQ headers
IFS=$'\n'
for line in `cat fastq_list.tsv`; do
zcat $line | head -n 1 | awk -v fname=$line -v OFS="\t" '{ print $0, fname}' >> fastq_headers.tsv
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment