Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aevol-eukaryotes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
LUISELLI Juliette
aevol-eukaryotes
Commits
7344dc12
Commit
7344dc12
authored
1 year ago
by
LUISELLI Juliette
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libaevol/mutation/PointMutation.cpp
+6
-0
6 additions, 0 deletions
src/libaevol/mutation/PointMutation.cpp
with
6 additions
and
0 deletions
src/libaevol/mutation/PointMutation.cpp
+
6
−
0
View file @
7344dc12
...
@@ -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_
));
...
...
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