Skip to content

Instantly share code, notes, and snippets.

@robsyme
Created November 18, 2009 06:16
Show Gist options
  • Save robsyme/237600 to your computer and use it in GitHub Desktop.
Save robsyme/237600 to your computer and use it in GitHub Desktop.
Renames fasta files from the abyss assembler
/^>/ {printf ">foxy19911_scaf_%05d_length_%d\n", substr($1,2), $2}
/^[^>]/ {print}
# See explanation here: http://picasaweb.google.com/lh/photo/iwAxZYVX1J4yuckbjBCGyg?feat=directlink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment