Commit 7031e7a2 authored by Mathieu Giraud's avatar Mathieu Giraud

core/kmeraffect.h: change AFFECT_AMBIGUOUS constant

AFFECT_AMBIGUOUS character is now '\1', in order to have a different value than AFFECT_UNKNOWN ('\0').
parent df19d79c
......@@ -131,7 +131,7 @@ KmerAffect KmerAffect::getUnknown() {
}
bool KmerAffect::isAmbiguous() const {
return affect_strand(affect) == 1 && affect_char(affect) == 0;
return affect_strand(affect) == 1 && affect_char(affect) == 1;
}
bool KmerAffect::isUnknown() const {
......
......@@ -146,7 +146,7 @@ const KmerAffect AFFECT_UNKNOWN = KmerAffect("", "\0", 0);
/**
* Constant defining the ambiguous affectation (many possibilities)
*/
const KmerAffect AFFECT_AMBIGUOUS = KmerAffect("", "\0", 1);
const KmerAffect AFFECT_AMBIGUOUS = KmerAffect("", "\1", 1);
const KmerAffect AFFECT_V = KmerAffect("", "V", 1);
const KmerAffect AFFECT_J = KmerAffect("", "J", 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment