Skip to content
GitLab
Menu
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
22489f9f
Commit
22489f9f
authored
Feb 10, 2016
by
Mikaël Salson
Browse files
KmerAffect: Don't compare KmerAffect with affect_t!
parent
c2aa9edf
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/kmeraffect.cpp
View file @
22489f9f
...
...
@@ -112,7 +112,7 @@ KmerAffect::KmerAffect(const string &label,
KmerAffect
&
KmerAffect
::
operator
+=
(
const
KmerAffect
&
kmer
)
{
if
(
kmer
.
affect
!=
affect
)
{
if
(
isUnknown
())
affect
=
kmer
.
affect
;
*
this
=
kmer
;
else
if
(
affect_char
(
affect
)
==
affect_char
(
kmer
.
affect
)
&&
(
affect_strand
(
affect
)
!=
affect_strand
(
kmer
.
affect
)))
// Same label but different strand
...
...
algo/core/read_score.cpp
View file @
22489f9f
...
...
@@ -15,9 +15,9 @@ float KmerAffectReadScore::getScore(const Sequence &sequence) const {
vector
<
KmerAffect
>
answers
=
index
.
getResults
(
sequence
.
sequence
);
float
score
=
0
;
for
(
size_t
i
=
0
;
i
<
answers
.
size
();
i
++
)
{
if
(
answers
[
i
]
.
affect
==
AFFECT_AMBIGUOUS
)
if
(
answers
[
i
]
==
AFFECT_AMBIGUOUS
)
score
+=
ambiguous_score
;
else
if
(
answers
[
i
]
.
affect
==
AFFECT_UNKNOWN
)
else
if
(
answers
[
i
]
==
AFFECT_UNKNOWN
)
score
+=
unknown_score
;
else
score
+=
unambiguous_score
;
...
...
Write
Preview
Supports
Markdown
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