complement_fast: Fast complement and reverse complement
Description
Uses chartr() instead of character-by-character translation.
~10x faster than the seqinr-style implementation for long sequences.
Usage
complement_fast(seq_str, rev = FALSE)
Value
Character string(s) with complement.
Arguments
- seq_str
Character string or vector.
- rev
Logical. Return reverse complement? Default FALSE.