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
d58d2d93
Commit
d58d2d93
authored
1 year ago
by
David Parsons
Browse files
Options
Downloads
Patches
Plain Diff
fix position computation for small_insertion
parent
e0d6582f
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/7/Dna_7.cpp
+8
-1
8 additions, 1 deletion
src/libaevol/7/Dna_7.cpp
with
8 additions
and
1 deletion
src/libaevol/7/Dna_7.cpp
+
8
−
1
View file @
d58d2d93
...
...
@@ -273,7 +273,14 @@ Mutation* Dna_7::do_small_deletion(size_type pos, int16_t nb_del) {
auto
old_pos
=
pos
;
// Remove promoters containing at least one nucleotide from the sequence to delete
ann_chrsm_
->
promoter_list
().
remove_promoters_around
(
pos
,
Utils
::
mod
(
pos
+
nb_del
,
length_
),
length_
);
auto
end_del
=
size_type
{
0
};
#ifdef __EUKARYOTE
end_del
=
std
::
min
(
length
(),
pos
+
nb_del
);
#else
end_del
=
Utils
::
mod
(
pos
+
nb_del
,
length
());
#endif
ann_chrsm_
->
promoter_list
().
remove_promoters_around
(
pos
,
end_del
,
length
());
// Do the deletion and update promoter list
if
(
pos
+
nb_del
<=
length
())
{
// the deletion does not contain the origin of
...
...
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