Mentions légales du service

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

add dna_length function to Individual_7

parent ddbfe36c
No related branches found
No related tags found
No related merge requests found
...@@ -2132,4 +2132,12 @@ int32_t Individual_7::find_alignment(int32_t nb_tries, ...@@ -2132,4 +2132,12 @@ int32_t Individual_7::find_alignment(int32_t nb_tries,
return cur_score; return cur_score;
} }
int32_t Individual_7::dna_length(){
return annotated_chromosome_[A]->length()
#ifdef __EUKARYOTE
+ annotated_chromosome_[B]->length()
#endif
;
}
} }
...@@ -149,6 +149,7 @@ class Individual_7 : public Observable { ...@@ -149,6 +149,7 @@ class Individual_7 : public Observable {
Chrsm parent2_gave_chrsm_; Chrsm parent2_gave_chrsm_;
bool inverted_parents_; bool inverted_parents_;
int32_t dna_length();
#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