Skip to content

Instantly share code, notes, and snippets.

@johnsolk
Created September 26, 2017 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnsolk/a6d11bea435836f7cc4ff536da2cb1ed to your computer and use it in GitHub Desktop.
Save johnsolk/a6d11bea435836f7cc4ff536da2cb1ed to your computer and use it in GitHub Desktop.
#replace IUPAC ambiguous characters in all fasta files in a directory
for i in $(ls *.fa); do sed -i -e 's/[YRWSKMDVHBX]/N/g' $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment