Moving some code from Python to C++.
BASEPAIRS = { \"T\": \"A\", \"A\": \"T\", \"G\": \"C\", \"C\": \"G\" }
Thinking maps might be overkill? W
BASEPAIRS = { "T": "A", "A": "T", "G": "C", "C": "G" } What would you use?
Maybe:
static const char basepairs[] = "ATAGCG"; // lookup: if (const char* p = strchr(basepairs, c)) // use p[1]
;-)