Skip to content

Instantly share code, notes, and snippets.

@johnsolk
Created August 31, 2018 17:01
Show Gist options
  • Save johnsolk/53a21c29a3c007f49b5628371c4faafb to your computer and use it in GitHub Desktop.
Save johnsolk/53a21c29a3c007f49b5628371c4faafb to your computer and use it in GitHub Desktop.
#outputs top 20 barcodes in file, if there are any
zcat lane1_sample_L001_R1_001.fastq.gz | head -400000 | grep '^@HWI' | cut -d : -f 10 | sort | uniq -c | sort -nr | head -20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment