Skip to content

Instantly share code, notes, and snippets.

@maneeshi
maneeshi / gist:412ef98ab0fba2ac4d0c
Created August 13, 2014 22:12
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