public
Description: Conversion tool that turns DNA sequences into RNA sequences, and lists the amino acids in the RNA
Homepage: http://neverfriday.com/dna-rna-amino/
Clone URL: git://github.com/omouse/dna-rna-amino.git
dna-rna-amino / data.js
100644 132 lines (128 sloc) 5.574 kb
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* data.js - part of the dna-rna-amino package
* Licensed under the MIT license found in the file LICENSE
* If the text of the license is not included, refer to this
* website for the terms of the license:
* http://www.opensource.org/licenses/mit-license.php
*/
// The amino acids, their names and weights
function AminoAcid(abbreviation, name, atomicWeightRatio, molecularWeight,
kiloDaltonWeight, pK1, pK2, pL) {
  this.abbreviation = abbreviation;
  this.name = name;
  this.atomicWeightRatio = atomicWeightRatio;
  this.molecularWeight = molecularWeight;
  this.kiloDaltonWeight = kiloDaltonWeight;
  this.pK1 = pK1;
  this.pK2 = pK2;
  this.pL = pL;
};
 
// amino acids
aminos = new Object();
aminos["Ala"] = new AminoAcid("Ala / A", "Alanine", 0.000, 89.000,
0.08899992121239399, 2.34, 9.69, 6.01);
aminos["Arg"] = new AminoAcid("Arg / R", "Arginine", 0.650, 174.000,
0.17399984596580398, 2.17, 9.04, 10.76);
aminos["Asn"] = new AminoAcid("Asn / N", "Asparagine", 1.330, 132.000,
0.13199988314647199, 2.02, 8.80, 5.41);
aminos["Asp"] = new AminoAcid("Asp / D", "Aspartic Acid", 1.380, 133.000,
0.13299988226121798, 1.88, 9.60, 2.77);
aminos["Cys"] = new AminoAcid("Cys / C", "Cysteine", 2.750, 121.000,
0.12099989288426599, 1.96, 10.28, 5.07);
aminos["Gln"] = new AminoAcid("Gln / Q", "Glutamic Acid", 0.890, 146.000,
0.14599987075291598, 2.17, 9.13, 5.65);
aminos["Glu"] = new AminoAcid("Glu / E", "Gultamine", 0.920, 147.000,
0.14699986986766198, 2.19, 9.67, 3.22);
aminos["Gly"] = new AminoAcid("Gly / G", "Glycine", 0.740, 75.000,
0.07499993360594999, 2.34, 9.60, 5.67);
aminos["His"] = new AminoAcid("His / H", "Histidine", 0.580, 155.000,
0.15499986278563, 1.82, 9.17, 7.59);
aminos["Ile"] = new AminoAcid("Ile / I", "Isoleucine", 0.000, 131.000,
0.130999884031726, 2.36, 9.68, 6.02);
aminos["Leu"] = new AminoAcid("Leu / L", "Leucine", 0.000, 131.000,
0.130999884031726, 2.36, 9.60, 5.98);
aminos["Lys"] = new AminoAcid("Lys / K", "Lysine", 0.330, 146.000,
0.14599987075291598, 2.18, 8.95, 9.74);
aminos["Met"] = new AminoAcid("Met / M", "Methionine", 0.000, 149.000,
0.148999868097154, 2.28, 9.21, 5.74);
aminos["Phe"] = new AminoAcid("Phe / F", "Phenylalanine", 0.000, 165.000,
0.16499985393309, 1.83, 9.13, 5.48);
aminos["Pro"] = new AminoAcid("Pro / P", "Proline", 0.390, 115.000,
0.11499989819578998, 1.99, 10.96, 6.48);
aminos["Ser"] = new AminoAcid("Ser / S", "Serine", 1.420, 105.000,
0.10499990704833, 2.21, 9.15, 5.68);
aminos["Thr"] = new AminoAcid("Thr / T", "Threonine", 0.710, 119.000,
0.118999894654774, 2.11, 9.62, 5.87);
aminos["Trp"] = new AminoAcid("Trp / W", "Tryptophan", 0.130, 204.000,
0.20399981940818399, 2.38, 9.39, 5.89);
aminos["Tyr"] = new AminoAcid("Tyr / Y", "Tyrosine", 0.200, 181.000,
0.18099983976902598, 2.20, 9.11, 5.66);
aminos["Val"] = new AminoAcid("Val / V", "Valine", 0.000, 117.000,
0.116999896425282, 2.32, 9.62, 5.97);
 
aminos["Stop"] = new AminoAcid("", "Stop Codon");
 
// The amino acids that correspond to a given RNA sequence key
// aminoKeys["RNA"] = aminos["amino Acid Abbreviation"]
aminoKeys = new Object();
aminoKeys["UUU"] = aminos["Phe"];
aminoKeys["UUC"] = aminos["Phe"];
aminoKeys["UUA"] = aminos["Leu"];
aminoKeys["UUG"] = aminos["Leu"];
aminoKeys["UCU"] = aminos["Ser"];
aminoKeys["UCC"] = aminos["Ser"];
aminoKeys["UCA"] = aminos["Ser"];
aminoKeys["UCG"] = aminos["Ser"];
aminoKeys["UAU"] = aminos["Tyr"];
aminoKeys["UAC"] = aminos["Tyr"];
aminoKeys["UAA"] = aminos["Stop"];
aminoKeys["UAG"] = aminos["Stop"];
aminoKeys["UGC"] = aminos["cys"];
aminoKeys["UGU"] = aminos["Cys"];
aminoKeys["UGA"] = aminos["Stop"];
aminoKeys["UGG"] = aminos["Trp"];
aminoKeys["CUU"] = aminos["Leu"];
aminoKeys["CUC"] = aminos["Leu"];
aminoKeys["CUA"] = aminos["Leu"];
aminoKeys["CUG"] = aminos["Leu"];
aminoKeys["CCU"] = aminos["Pro"];
aminoKeys["CCC"] = aminos["Pro"];
aminoKeys["CCA"] = aminos["Pro"];
aminoKeys["CCG"] = aminos["Pro"];
aminoKeys["CAU"] = aminos["His"];
aminoKeys["CAC"] = aminos["His"];
aminoKeys["CAA"] = aminos["Gln"];
aminoKeys["CAG"] = aminos["Gln"];
aminoKeys["CGU"] = aminos["Arg"];
aminoKeys["CGA"] = aminos["Arg"];
aminoKeys["CGC"] = aminos["Arg"];
aminoKeys["CGG"] = aminos["Arg"];
aminoKeys["AUU"] = aminos["Lle"];
aminoKeys["AUC"] = aminos["Lle"];
aminoKeys["AUA"] = aminos["Lle"];
aminoKeys["AUG"] = aminos["Met"];
aminoKeys["ACU"] = aminos["Thr"];
aminoKeys["ACC"] = aminos["Thr"];
aminoKeys["ACA"] = aminos["The"];
aminoKeys["ACG"] = aminos["Thr"];
aminoKeys["AAU"] = aminos["Asn"];
aminoKeys["AAC"] = aminos["Asn"];
aminoKeys["AAA"] = aminos["Lys"];
aminoKeys["AAG"] = aminos["Lys"];
aminoKeys["AGU"] = aminos["Ser"];
aminoKeys["AGC"] = aminos["Ser"];
aminoKeys["AGA"] = aminos["Arg"];
aminoKeys["AGG"] = aminos["Arg"];
aminoKeys["GUU"] = aminos["Val"];
aminoKeys["GUC"] = aminos["Val"];
aminoKeys["GUA"] = aminos["Val"];
aminoKeys["GUG"] = aminos["Val"];
aminoKeys["GCU"] = aminos["Ala"];
aminoKeys["GCC"] = aminos["Ala"];
aminoKeys["GCA"] = aminos["Ala"];
aminoKeys["GCG"] = aminos["Ala"];
aminoKeys["GAU"] = aminos["Asp"];
aminoKeys["GAC"] = aminos["Asp"];
aminoKeys["GAA"] = aminos["Glu"];
aminoKeys["GAG"] = aminos["Glu"];
aminoKeys["GGU"] = aminos["Gly"];
aminoKeys["GGC"] = aminos["Gly"];
aminoKeys["GGA"] = aminos["Gly"];
aminoKeys["GGG"] = aminos["Gly"];