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
39512c6a
Commit
39512c6a
authored
1 year ago
by
LUISELLI Juliette
Browse files
Options
Downloads
Patches
Plain Diff
add function add_recomb to DnaReplicationReport
parent
24d13a0d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libaevol/io/DnaReplicationReport.cpp
+12
-0
12 additions, 0 deletions
src/libaevol/io/DnaReplicationReport.cpp
src/libaevol/io/DnaReplicationReport.h
+3
-0
3 additions, 0 deletions
src/libaevol/io/DnaReplicationReport.h
with
15 additions
and
0 deletions
src/libaevol/io/DnaReplicationReport.cpp
+
12
−
0
View file @
39512c6a
...
...
@@ -135,6 +135,15 @@ void DnaReplicationReport::add_mut(Mutation* mut) {
}
}
#ifdef __EUKARYOTE
void
DnaReplicationReport
::
add_recomb
(
Mutation
*
recomb
){
std
::
unique_ptr
<
const
Recombination
>
crecomb
=
nullptr
;
crecomb
=
std
::
make_unique
<
const
Recombination
>
(
static_cast
<
Recombination
&>
(
*
recomb
));
recombinations_
.
push_back
(
std
::
move
(
crecomb
));
nb_mut_
[
recomb
->
mut_type
()]
++
;
}
#endif
void
DnaReplicationReport
::
add_local_mut
(
Mutation
*
mut
)
{
assert
(
mut
->
is_local_mut
());
std
::
unique_ptr
<
const
LocalMutation
>
cmut
=
nullptr
;
...
...
@@ -262,6 +271,9 @@ void DnaReplicationReport::compute_stats()
nb_mut_
[
INV
]
=
0
;
nb_mut_
[
INS_HT
]
=
0
;
nb_mut_
[
REPL_HT
]
=
0
;
#ifdef __EUKARYOTE
nb_mut_
[
RECOMB
]
=
0
;
#endif
for
(
const
auto
&
ht
:
ht_
)
{
assert
(
ht
->
mut_type
()
==
INS_HT
or
...
...
This diff is collapsed.
Click to expand it.
src/libaevol/io/DnaReplicationReport.h
+
3
−
0
View file @
39512c6a
...
...
@@ -88,6 +88,9 @@ class DnaReplicationReport {
void
add_local_mut
(
Mutation
*
mut
);
void
add_rear
(
Mutation
*
mut
);
void
add_HT
(
Mutation
*
mut
);
#ifdef __EUKARYOTE
void
add_recomb
(
Mutation
*
mut
);
#endif
void
clear
();
...
...
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