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

encore des corrections d'erreurs

parent 85d56e7c
No related branches found
No related tags found
No related merge requests found
......@@ -25,22 +25,22 @@ class RotTable:
}
__CORRESPONDANCE = {\
"AA": "TT"
"AC": "TG"
"AG": "TC"
"AT": "TA"
"CA": "GT"
"CC": "GG"
"CG": "GC"
"CT": "GA"
"GA": "CT"
"GC": "CG"
"GG": "CC"
"GT": "CA"
"TA": "AT"
"TC": "AG"
"TG": "AC"
"TT": "AA"
"AA": "TT",\
"AC": "TG",\
"AG": "TC",\
"AT": "TA",\
"CA": "GT",\
"CC": "GG",\
"CG": "GC",\
"CT": "GA",\
"GA": "CT",\
"GC": "CG",\
"GG": "CC",\
"GT": "CA",\
"TA": "AT",\
"TC": "AG",\
"TG": "AC",\
"TT": "AA",\
}
# get the angles in each axis (x, y, z), considering the deviation
......
......@@ -49,6 +49,7 @@ class Individu():
#sur l'axe z il y a un moins
table_rotations[doublet2][coord] = - table_rotations[doublet][coord]
# individu1 = Individu(RotTable())
# print(individu1.table.rot_table)
# individu1.mutation()
......
......@@ -2,7 +2,7 @@ import random
from random import random, randint, randrange
from individu import Individu
from RotTable import RotTable
from croisement import *
from croisement import croisement_un_point, croisement_deux_points
class Population:
def __init__(self,n):
......@@ -149,14 +149,11 @@ def test():
for individu in popu.indiv :
individu.evaluate("AAAGGATCTTCTTGAGATCCTTTTTTTCTGCGCGTAATCTGCTGCCAGTAAACGAAAAAACCGCCTGGGGAGGCGGTTTAGTCGAA")
afficher(popu)
# popu.selection_par_rang()
# print("\n SELECTION PAR RANG \n")
# afficher(popu)
popu.reproduction(selection = popu.selection_proportionelle)
popu.reproduction(selection = popu.selection_duel)
print("\n REPRODUCTION \n")
afficher(popu)
test()
# test()
......
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