title: How do I convert the three letter amino acid codes to one letter code with python or R?
body: <p>I have a fasta file as shown below. I would like to convert the <a href="https://en.wikipedia.org/wiki/Amino_acid#Table_of_standard_amino_acid_abbreviations_and_properties">three letter codes</a> to one letter code. How can I do this with python or R?</p>
  
  <pre><code>&gt;2ppo
  ARGHISLEULEULYS
  &gt;3oot
  METHISARGARGMET
  </code></pre>
  
  <p>desired  output</p>
  
  <pre><code>&gt;2ppo
  RHLLK
  &gt;3oot
  MHRRM
  </code></pre>
  
  <p>your suggestions would be appreciated!!</p>