Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
581dd39d
Commit
581dd39d
authored
Oct 19, 2014
by
Mathieu Giraud
Browse files
core/segment.{h,cpp}: computeSegmentation takes germline as an argument
Moreover, the argument 's' was not used
parent
a3dba9fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
581dd39d
...
...
@@ -215,7 +215,7 @@ KmerSegmenter::KmerSegmenter(Sequence seq, MultiGermline *multigermline)
strand
=
2
;
}
computeSegmentation
(
strand
,
germline
->
delta_min
,
germline
->
delta_max
,
s
);
computeSegmentation
(
strand
,
germline
);
if
(
segmented
)
{
...
...
@@ -241,7 +241,7 @@ KmerSegmenter::~KmerSegmenter() {
delete
kaa
;
}
void
KmerSegmenter
::
computeSegmentation
(
int
strand
,
int
delta_min
,
int
delta_max
,
int
s
)
{
void
KmerSegmenter
::
computeSegmentation
(
int
strand
,
Germline
*
germline
)
{
// Try to segment, computing 'Vend' and 'Jstart', and 'segmented'
// If not segmented, put the cause of unsegmentation in 'because'
...
...
@@ -291,12 +291,12 @@ void KmerSegmenter::computeSegmentation(int strand, int delta_min, int delta_max
{
// Now we check the delta between Vend and right
if
(
Jstart
-
Vend
<
delta_min
)
if
(
Jstart
-
Vend
<
germline
->
delta_min
)
{
because
=
UNSEG_BAD_DELTA_MIN
;
}
if
(
Jstart
-
Vend
>
delta_max
)
if
(
Jstart
-
Vend
>
germline
->
delta_max
)
{
because
=
UNSEG_BAD_DELTA_MAX
;
}
...
...
algo/core/segment.h
View file @
581dd39d
...
...
@@ -158,7 +158,7 @@ class KmerSegmenter : public Segmenter
int
getSegmentationStatus
()
const
;
private:
void
computeSegmentation
(
int
strand
,
int
delta_min
,
int
delta_max
,
int
s
);
void
computeSegmentation
(
int
strand
,
Germline
*
germline
);
};
class
FineSegmenter
:
public
Segmenter
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment