Mentions légales du service

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

save and retrieve chrsm_ information to Tree for Small Deletions

parent 7344dc12
No related branches found
No related tags found
No related merge requests found
...@@ -55,11 +55,17 @@ SmallDeletion::SmallDeletion(int32_t pos, int16_t length) : ...@@ -55,11 +55,17 @@ SmallDeletion::SmallDeletion(int32_t pos, int16_t length) :
void SmallDeletion::save(gzFile backup_file) const { void SmallDeletion::save(gzFile backup_file) const {
int8_t tmp_mut_type = S_DEL; int8_t tmp_mut_type = S_DEL;
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_));
gzwrite(backup_file, &length_, sizeof(length_)); gzwrite(backup_file, &length_, sizeof(length_));
} }
void SmallDeletion::load(gzFile backup_file) { void SmallDeletion::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_));
gzread(backup_file, &length_, sizeof(length_)); gzread(backup_file, &length_, sizeof(length_));
} }
......
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