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
9b2193fe
Commit
9b2193fe
authored
Feb 02, 2015
by
Mathieu Giraud
Browse files
core/segment.{h,cpp}: simple KmerSegmenter.score
parent
d187edd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
9b2193fe
...
...
@@ -278,6 +278,8 @@ void KmerSegmenter::computeSegmentation(int strand, Germline* germline) {
segmented
=
true
;
because
=
0
;
// Cause of unsegmentation
score
=
0
;
affect_infos
max
;
// Zero information
if
(
strand
==
0
)
...
...
@@ -290,7 +292,6 @@ void KmerSegmenter::computeSegmentation(int strand, Germline* germline) {
}
else
{
affect_infos
max
;
if
(
strand
==
1
)
max
=
kaa
->
getMaximum
(
KmerAffect
(
germline
->
affect_5
,
1
),
KmerAffect
(
germline
->
affect_3
,
1
));
...
...
@@ -340,6 +341,8 @@ void KmerSegmenter::computeSegmentation(int strand, Germline* germline) {
}
if
(
because
)
segmented
=
false
;
else
score
=
max
.
nb_before_left
+
max
.
nb_before_right
+
max
.
nb_after_left
+
max
.
nb_after_right
;
}
KmerAffectAnalyser
*
KmerSegmenter
::
getKmerAffectAnalyser
()
const
{
...
...
algo/core/segment.h
View file @
9b2193fe
...
...
@@ -142,6 +142,7 @@ class KmerSegmenter : public Segmenter
public:
bool
isDetected
()
const
;
int
score
;
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