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
a2471bbd
Commit
a2471bbd
authored
Apr 07, 2015
by
Mikaël Salson
Browse files
KmerSegmenter: Add getNbExpectedLeftRight()
parent
afaae79d
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
a2471bbd
...
...
@@ -384,6 +384,10 @@ KmerMultiSegmenter::KmerMultiSegmenter(Sequence seq, MultiGermline *multigermlin
double
KmerMultiSegmenter
::
getNbExpected
()
const
{
double
proba
=
the_kseg
->
getKmerAffectAnalyser
()
->
getProbabilityAtLeastOrAbove
(
the_kseg
->
score
);
return
multi_germline
->
germlines
.
size
()
*
proba
;
pair
<
double
,
double
>
KmerMultiSegmenter
::
getNbExpectedLeftRight
()
const
{
pair
<
double
,
double
>
p
=
the_kseg
->
getKmerAffectAnalyser
()
->
getLeftRightProbabilityAtLeastOrAbove
();
return
pair
<
double
,
double
>
(
p
.
first
*
multi_germline
->
germlines
.
size
(),
p
.
second
*
multi_germline
->
germlines
.
size
());
}
KmerMultiSegmenter
::~
KmerMultiSegmenter
()
{
...
...
algo/core/segment.h
View file @
a2471bbd
...
...
@@ -214,6 +214,12 @@ class KmerMultiSegmenter
*/
double
getNbExpected
()
const
;
/**
* @return expected number of Segmenter that would have yield the maximum score by chance
* on the left part of the read and on the right part of the read respectively.
*/
pair
<
double
,
double
>
getNbExpectedLeftRight
()
const
;
~
KmerMultiSegmenter
();
KmerSegmenter
*
the_kseg
;
...
...
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