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:
VAL
LEU
SER
PRO
ALA
ASP
LYS
THR
ASN
They are all amino acid 3-letter abbreviation. I need to convert them into 1-letter abbreviation.
For example,
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.
Like:
V
L
S
P
A
D
K
T
N
May I know how to do it?