Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ddbfe36c authored by LUISELLI Juliette's avatar LUISELLI Juliette
Browse files

add informations to Individual_7 to be able to reconstruct from the Tree

parent 03d1d8af
No related branches found
No related tags found
No related merge requests found
...@@ -106,9 +106,15 @@ Individual_7* Individual_7::make_from_parents(Individual_7* parent1, ...@@ -106,9 +106,15 @@ Individual_7* Individual_7::make_from_parents(Individual_7* parent1,
if (prng->random() < 0.5) { if (prng->random() < 0.5) {
indiv->annotated_chromosome_[A] = chromosome1; indiv->annotated_chromosome_[A] = chromosome1;
indiv->annotated_chromosome_[B] = chromosome2; indiv->annotated_chromosome_[B] = chromosome2;
indiv->parent1_gave_chrsm_ = A;
indiv->parent2_gave_chrsm_ = B;
indiv->inverted_parents_ = false;
} else { } else {
indiv->annotated_chromosome_[A] = chromosome2; indiv->annotated_chromosome_[A] = chromosome2;
indiv->annotated_chromosome_[B] = chromosome1; indiv->annotated_chromosome_[B] = chromosome1;
indiv->parent1_gave_chrsm_ = B;
indiv->parent2_gave_chrsm_ = A;
indiv->inverted_parents_ = true;
} }
return indiv; return indiv;
......
...@@ -145,6 +145,10 @@ class Individual_7 : public Observable { ...@@ -145,6 +145,10 @@ class Individual_7 : public Observable {
int32_t recomb_posA_, recomb_posB_; int32_t recomb_posA_, recomb_posB_;
int32_t recomb_score_ = -1; int32_t recomb_score_ = -1;
Chrsm parent1_gave_chrsm_;
Chrsm parent2_gave_chrsm_;
bool inverted_parents_;
#ifdef PHENOTYPE_VECTOR #ifdef PHENOTYPE_VECTOR
double phenotype[PHENOTYPE_VECTOR_SIZE]; double phenotype[PHENOTYPE_VECTOR_SIZE];
double delta[PHENOTYPE_VECTOR_SIZE]; double delta[PHENOTYPE_VECTOR_SIZE];
......
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