Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EI Jeux Evolutionnaires
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Santos Garcia Carlos
EI Jeux Evolutionnaires
Commits
98c578fa
Commit
98c578fa
authored
5 years ago
by
Kappes Marques Rodrigo
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned more the overall code
parent
f77e72f7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
__pycache__/RotTable.cpython-37.pyc
+0
-0
0 additions, 0 deletions
__pycache__/RotTable.cpython-37.pyc
algogenetique.py
+2
-6
2 additions, 6 deletions
algogenetique.py
population.py
+3
-0
3 additions, 0 deletions
population.py
with
5 additions
and
6 deletions
__pycache__/RotTable.cpython-37.pyc
+
0
−
0
View file @
98c578fa
No preview for this file type
This diff is collapsed.
Click to expand it.
algogenetique.py
+
2
−
6
View file @
98c578fa
...
@@ -15,14 +15,10 @@ start_time = time.time()
...
@@ -15,14 +15,10 @@ start_time = time.time()
def
main
(
N
,
tmax
,
pmutation
,
proportion
):
def
main
(
N
,
tmax
,
pmutation
,
proportion
):
#Setting up initial variables
L
=
[]
lineList
=
[
line
.
rstrip
(
'
\n
'
)
for
line
in
open
(
"
plasmid_8k.fasta
"
)]
brin
=
''
.
join
(
lineList
[
1
:])
#Creation of the initial population
#Creation of the initial population
People
=
Population
(
N
)
People
=
Population
(
N
)
L
=
[]
#Evaluating the initial population for the histogram
#Evaluating the initial population for the histogram
S1
=
[]
S1
=
[]
...
...
This diff is collapsed.
Click to expand it.
population.py
+
3
−
0
View file @
98c578fa
...
@@ -4,7 +4,10 @@ from RotTable import RotTable
...
@@ -4,7 +4,10 @@ from RotTable import RotTable
from
croisement
import
croisement_un_point
,
croisement_deux_points
from
croisement
import
croisement_un_point
,
croisement_deux_points
import
copy
import
copy
class
Population
:
class
Population
:
'''
A class of the ensemble of individuals and the methods associated with them,such as reproduction and different types of selections
'''
#Class initialization
#Class initialization
def
__init__
(
self
,
n
):
def
__init__
(
self
,
n
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment