Hi all, I'm having some problem with my codes. I have a output that is generated into a txt file. Now, I need to read the txt file and convert the output into something else.
This is the output that is store in a txt file:
They are all amino acid 3-letter abbreviation. I need to convert them into 1-letter abbreviation.
Val should be 'V'.
Leu should be 'L'.
Ser should be 'S'.
Pro should be 'P'.
Ala should be 'A'.
Asp should be 'D'.
Lys should be 'K'.
Thr should be 'T'.
Asn should be 'N'.
The final output should be only 1-letter abbreviation.
May I know how to do it?
Edited 6 Years Ago by Sunshineserene: n/a