Mentions légales du service

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

save and retrieve chrsm_ information to Tree for Point Mutations

parent 7b6a21d0
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,9 @@ PointMutation::PointMutation(int32_t pos, char choice) : pos_(pos), base_(choice ...@@ -56,6 +56,9 @@ PointMutation::PointMutation(int32_t pos, char choice) : pos_(pos), base_(choice
void PointMutation::save(gzFile backup_file) const { void PointMutation::save(gzFile backup_file) const {
int8_t tmp_mut_type = SWITCH; int8_t tmp_mut_type = SWITCH;
gzwrite(backup_file, &tmp_mut_type, sizeof(tmp_mut_type)); gzwrite(backup_file, &tmp_mut_type, sizeof(tmp_mut_type));
#ifdef __EUKARYOTE
gzwrite(backup_file, &chrsm_, sizeof(chrsm_));
#endif
gzwrite(backup_file, &pos_, sizeof(pos_)); gzwrite(backup_file, &pos_, sizeof(pos_));
#ifdef BASE_4 #ifdef BASE_4
gzwrite(backup_file, &base_, sizeof(base_)); gzwrite(backup_file, &base_, sizeof(base_));
...@@ -63,6 +66,9 @@ void PointMutation::save(gzFile backup_file) const { ...@@ -63,6 +66,9 @@ void PointMutation::save(gzFile backup_file) const {
} }
void PointMutation::load(gzFile backup_file) { void PointMutation::load(gzFile backup_file) {
#ifdef __EUKARYOTE
gzread(backup_file, &chrsm_, sizeof(chrsm_));
#endif
gzread(backup_file, &pos_, sizeof(pos_)); gzread(backup_file, &pos_, sizeof(pos_));
#ifdef BASE_4 #ifdef BASE_4
gzread(backup_file, &base_, sizeof(base_)); gzread(backup_file, &base_, sizeof(base_));
......
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