Debian Codegraph @

res/SubstitutionClasses/CodonEFV/Observed Codon

raw
1 function GUIBuildCodonFrequencies (EFV)
2 {
3 result = {ModelMatrixDimension,1};
4 HarvestFrequencies (Model_EFV_Vector,Data_Set_ID,3,3,1);
5 MULTIPLY_BY_FREQS = 0;
6 return result;
7 }
8
9 /** MATRIX MODIFICATION CODE **/
10
11 EFVModifierMatrix = {ModelMatrixDimension,ModelMatrixDimension};
12 hshift = 0;
13
14 for (h=0; h<64; h=h+1)
15 {
16 if (ModelGeneticCode[h]==10)
17 {
18 hshift = hshift+1;
19 continue;
20 }
21 vshift = hshift;
22 for (v = h+1; v<64; v=v+1)
23 {
24 diff = v-h;
25 if (ModelGeneticCode[v]==10)
26 {
27 vshift = vshift+1;
28 continue;
29 }
30 if ((h$4==v$4)||((diff%4==0)&&(h$16==v$16))||(diff%16==0))
31 {
32 if (h$4==v$4)
33 {
34 transition = v%4;
35 transition2= h%4;
36 }
37 else
38 {
39 if(diff%16==0)
40 {
41 transition = v$16;
42 transition2= h$16;
43 }
44 else
45 {
46 transition = v%16$4;
47 transition2= h%16$4;
48 }
49 }
50 if (transition==0)
51 {
52 EFVModifierMatrix[h-hshift][v-vshift] := "EFV__[0]";
53 }
54 else
55 {
56 if (transition==1)
57 {
58 EFVModifierMatrix[h-hshift][v-vshift] := "EFV__[1]";
59 }
60 else
61 {
62 if (transition==2)
63 {
64 EFVModifierMatrix[h-hshift][v-vshift] := "EFV__[2]";
65 }
66 else
67 {
68 EFVModifierMatrix[h-hshift][v-vshift] := "EFV__[3]";
69 }
70
71 }
72 }
73 if (transition2==0)
74 {
75 EFVModifierMatrix[v-vshift][h-hshift] := "EFV__[0]";
76 }
77 else
78 {
79 if (transition2==1)
80 {
81 EFVModifierMatrix[v-vshift][h-hshift] := "EFV__[1]";
82 }
83 else
84 {
85 if (transition2==2)
86 {
87 EFVModifierMatrix[v-vshift][h-hshift] := "EFV__[2]";
88 }
89 else
90 {
91 EFVModifierMatrix[v-vshift][h-hshift] := "EFV__[3]";
92 }
93
94 }
95 }
96 }
97 }
98 }
99
100