Commit b901014b authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

core/tools.{h,cpp}: explicit case for 'N' in reverse_complement

This should change nothing, we should never go to the '?'.
parent 1f12079d
......@@ -75,9 +75,11 @@ char complement_nucleotide(char nuc) {
case 'H': case 'h': return 'D'; // not G
case 'V': case 'v': return 'B'; // not T
case 'N': case 'n': return 'N';
case ' ': return ' '; // ne devrait pas arriver...
default: return 'N';
default: return '?';
......@@ -72,7 +72,7 @@ bool pair_occurrence_sort(pair<T, int> a, pair<T, int> b);
string string_of_int(int number);
* @param nuc is A, C, G, T or N (or lowercase)
* @param nuc is A, C, G, T or any extended nucleotide (or lowercase)
* @return the complementary nucleotide of nuc
char complement_nucleotide(char nuc);
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