#include <Sequence/ComplementBase.hpp>
Public Member Functions | |
| void | operator() (char &ch) const |
a functor to complement a sequence
example use:
//reverse and complement a std::string #include <string> #include <algorithm> #include <Sequence/SeqFunctors.hpp> int main () { std::string seq; //fill seq with DNA characters std::reverse(seq.begin(),seq.end()); std::for_each(seq.begin(),seq.end(),Sequence::ComplementBase()); }
Definition at line 53 of file ComplementBase.hpp.
| void Sequence::ComplementBase::operator() | ( | char & | ch | ) | const |
Converts ch to the complement of ch. Use with std::for_each to complement a range
Definition at line 30 of file ComplementBase.cc.
1.6.1