Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
c1ac9fac
Commit
c1ac9fac
authored
Jun 11, 2015
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/segment.cpp, core/kmerstore.h: MAX1U, report information through FineSegmenter
parent
8ea42fff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
algo/core/kmerstore.h
algo/core/kmerstore.h
+1
-1
algo/core/segment.cpp
algo/core/segment.cpp
+3
-2
No files found.
algo/core/kmerstore.h
View file @
c1ac9fac
...
...
@@ -333,7 +333,7 @@ string IKmerStore<T>::getLabel(T kmer) const {
for
(
typename
list
<
pair
<
T
,
string
>
>::
const_iterator
it
=
labels
.
begin
();
it
!=
labels
.
end
();
++
it
)
if
(
it
->
first
==
kmer
)
return
it
->
second
;
return
""
;
return
"
?
"
;
}
// .getResults()
...
...
algo/core/segment.cpp
View file @
c1ac9fac
...
...
@@ -642,9 +642,10 @@ FineSegmenter::FineSegmenter(Sequence seq, Germline *germline, Cost segment_c)
if
(
!
germline
->
rep_5
.
size
()
||
!
germline
->
rep_3
.
size
())
{
// We check whether this sequence is segmented with MAX12 (with default e-value parameters)
// We check whether this sequence is segmented with MAX12
or MAX1U
(with default e-value parameters)
KmerSegmenter
*
kseg
=
new
KmerSegmenter
(
seq
,
germline
,
THRESHOLD_NB_EXPECTED
,
1
);
if
(
kseg
->
isSegmented
()
&&
(
!
strcmp
(
germline
->
code
.
c_str
(),
PSEUDO_GERMLINE_MAX12
)))
if
(
kseg
->
isSegmented
()
&&
((
!
strcmp
(
germline
->
code
.
c_str
(),
PSEUDO_GERMLINE_MAX12
))
||
!
strcmp
(
germline
->
code
.
c_str
(),
PSEUDO_GERMLINE_MAX1U
)))
{
reversed
=
kseg
->
isReverse
();
...
...
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