Skip to content

Instantly share code, notes, and snippets.

@maneeshi
Created August 13, 2014 22:12
Show Gist options
  • Save maneeshi/412ef98ab0fba2ac4d0c to your computer and use it in GitHub Desktop.
Save maneeshi/412ef98ab0fba2ac4d0c to your computer and use it in GitHub Desktop.
Fasta to chrom.sizes
awk '$0 ~ ">" {print c; c=0;printf substr($0,2,100) "\t"; } $0 !~ ">" {c+=length($0);} ' /Users/Maneeshi/XlaevisBlastDB/Xlaevis6.1.fa > chrom.sizes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment