Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
aaabe92c
Commit
aaabe92c
authored
Oct 02, 2014
by
Mathieu Giraud
Browse files
segment.cpp: KmerSegmenter iterates over all Germlines given in the MultiGermline
parent
ea7f0f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
aaabe92c
...
...
@@ -172,8 +172,11 @@ KmerSegmenter::KmerSegmenter(Sequence seq, MultiGermline *multigermline)
reversed
=
false
;
Dend
=
0
;
// Now we just take one germline
Germline
*
germline
=
multigermline
->
germlines
.
back
();
// Iterate over the germlines
for
(
list
<
Germline
*>::
const_iterator
it
=
multigermline
->
germlines
.
begin
();
it
!=
multigermline
->
germlines
.
end
();
++
it
)
{
Germline
*
germline
=
*
it
;
int
s
=
(
size_t
)
germline
->
index
->
getS
()
;
int
length
=
sequence
.
length
()
;
...
...
@@ -181,7 +184,7 @@ KmerSegmenter::KmerSegmenter(Sequence seq, MultiGermline *multigermline)
{
because
=
UNSEG_TOO_SHORT
;
kaa
=
NULL
;
return
;
continue
;
}
kaa
=
new
KmerAffectAnalyser
<
KmerAffect
>
(
*
(
germline
->
index
),
sequence
);
...
...
@@ -226,7 +229,10 @@ KmerSegmenter::KmerSegmenter(Sequence seq, MultiGermline *multigermline)
// removeChevauchement is called once info was already computed: it is only to output info_extra
info_extra
+=
removeChevauchement
();
finishSegmentation
();
return
;
}
}
// end for (Germlines)
}
KmerSegmenter
::~
KmerSegmenter
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment