Commit e927642c authored by Mathieu Giraud's avatar Mathieu Giraud

core/kmeraffect.cpp: KmerAffect.toString(), simplification

parent adc920d5
...@@ -53,12 +53,12 @@ bool operator!=(const affect_t &a1, const affect_t &a2) { ...@@ -53,12 +53,12 @@ bool operator!=(const affect_t &a1, const affect_t &a2) {
} }
string toString(const affect_t &a) { string toString(const affect_t &a) {
string result; string result;
if(a ==AFFECT_UNKNOWN) if((a == AFFECT_UNKNOWN) || (a == AFFECT_AMBIGUOUS))
result = " "AFFECT_UNKNOWN_SYMBOL; result = " ";
else if (a == AFFECT_AMBIGUOUS)
result = " "AFFECT_AMBIGUOUS_SYMBOL;
else else
result = (affect_strand(a)==1 ? "+" : "-") + string(1,affect_char(a)); result = (affect_strand(a)==1 ? "+" : "-");
result += string(1,affect_char(a));
return result; return result;
} }
ostream &operator<<(ostream &os, const affect_t &a) { ostream &operator<<(ostream &os, const affect_t &a) {
......
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