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:
__CORRESPONDANCE = {\
"AA": "TT",\
"AC": "TG",\
"AG": "TC",\
"AT": "TA",\
"CA": "GT",\
"AC": "GT",\
"AG": "CT",\
"AT": "AT",\
"CA": "TG",\
"CC": "GG",\
"CG": "GC",\
"CT": "GA",\
"GA": "CT",\
"GC": "CG",\
"CG": "CG",\
"CT": "AG",\
"GA": "TC",\
"GC": "GC",\
"GG": "CC",\
"GT": "CA",\
"TA": "AT",\
"TC": "AG",\
"TG": "AC",\
"GT": "AC",\
"TA": "TA",\
"TC": "GA",\
"TG": "CA",\
"TT": "AA",\
}
......
No preview for this file type
No preview for this file type
......@@ -26,13 +26,13 @@ class Individu():
first_name = brin[0]
last_name = brin[-1]
rot_computed = self.table.rot_table[last_name+first_name]
rot_traj = first_nucleotide - last_nucleotide
#rot_computed = self.table.rot_table[last_name+first_name]
#rot_traj = first_nucleotide - last_nucleotide
# print(rot_traj)
# 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):
......
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