-
Notifications
You must be signed in to change notification settings - Fork 1
/
one2thr.c
31 lines (29 loc) · 1017 Bytes
/
one2thr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <string.h>
#include <stdio.h>
char *OneToThree(char One)
{
if( One == 'A' ) return("ALA");
else if( One == 'R' ) return("ARG");
else if( One == 'N' ) return("ASN");
else if( One == 'D' ) return("ASP");
else if( One == 'B' ) return("ASX");
else if( One == 'C' ) return("CYS");
else if( One == 'Q' ) return("GLN");
else if( One == 'E' ) return("GLU");
else if( One == 'Z' ) return("GLX");
else if( One == 'G' ) return("GLY");
else if( One == 'H' ) return("HIS");
else if( One == 'I' ) return("ILE");
else if( One == 'L' ) return("LEU");
else if( One == 'K' ) return("LYS");
else if( One == 'M' ) return("MET");
else if( One == 'P' ) return("PRO");
else if( One == 'F' ) return("PHE");
else if( One == 'S' ) return("SER");
else if( One == 'T' ) return("THR");
else if( One == 'W' ) return("TRP");
else if( One == 'Y' ) return("TYR");
else if( One == 'V' ) return("VAL");
else if( One == 'X' ) return("UNK");
else return("***");
}