Skip to content
Snippets Groups Projects
Commit 1dc58e76 authored by Muller Sacha's avatar Muller Sacha
Browse files

a

parents 5bd00702 32b84240
No related branches found
No related tags found
No related merge requests found
...@@ -26,20 +26,20 @@ class RotTable: ...@@ -26,20 +26,20 @@ class RotTable:
__CORRESPONDANCE = {\ __CORRESPONDANCE = {\
"AA": "TT",\ "AA": "TT",\
"AC": "TG",\ "AC": "GT",\
"AG": "TC",\ "AG": "CT",\
"AT": "TA",\ "AT": "AT",\
"CA": "GT",\ "CA": "TG",\
"CC": "GG",\ "CC": "GG",\
"CG": "GC",\ "CG": "CG",\
"CT": "GA",\ "CT": "AG",\
"GA": "CT",\ "GA": "TC",\
"GC": "CG",\ "GC": "GC",\
"GG": "CC",\ "GG": "CC",\
"GT": "CA",\ "GT": "AC",\
"TA": "AT",\ "TA": "TA",\
"TC": "AG",\ "TC": "GA",\
"TG": "AC",\ "TG": "CA",\
"TT": "AA",\ "TT": "AA",\
} }
......
No preview for this file type
No preview for this file type
...@@ -26,13 +26,13 @@ class Individu(): ...@@ -26,13 +26,13 @@ class Individu():
first_name = brin[0] first_name = brin[0]
last_name = brin[-1] last_name = brin[-1]
rot_computed = self.table.rot_table[last_name+first_name] #rot_computed = self.table.rot_table[last_name+first_name]
rot_traj = first_nucleotide - last_nucleotide #rot_traj = first_nucleotide - last_nucleotide
# print(rot_traj) # print(rot_traj)
# print(rot_computed) # print(rot_computed)
diff_angle = sum(abs(rot_computed - rot_traj)) #diff_angle = sum(abs(rot_computed - rot_traj))
self.score = 1/(distance + diff_angle) self.score = 1/(distance)
def mutation(self, proba = P1): def mutation(self, proba = P1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment