Skip to content

Instantly share code, notes, and snippets.

@l-modolo
Created May 14, 2014 09:04
Show Gist options
  • Save l-modolo/3384b250006b59e54157 to your computer and use it in GitHub Desktop.
Save l-modolo/3384b250006b59e54157 to your computer and use it in GitHub Desktop.
convert fasta sequence to uppercase, usefull for nhmmer
#!/bin/sh
# convert fasta sequence to uppercase, usefull for nhmmer
awk '/^>/ {print($0)}; /^[^>]/ {print(toupper($0))}' file.fasta > file_upper.fasta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment