motif_rc {universalmotif} | R Documentation

## Get the reverse complement of a DNA or RNA motif.

### Description

For any motif, change the `motif` slot to it's reverse complement. If the `multifreq` slot is filled, then it is also applied. No other slots are affected.

### Usage

    motif_rc(motifs, ignore.alphabet = FALSE)

### Arguments

`motifs` | See `convert_motifs()` for acceptable formats
`ignore.alphabet` | `logical(1)` If `TRUE`, then `motif_rc()` throws an error when it detects a non-DNA/RNA motif. If `FALSE`, it will proceed regardless.

### Value

See `convert_motifs()` for available output formats.

### Author(s)

Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca

### Examples

    jaspar <- read_jaspar(system.file("extdata", "jaspar.txt",
                                      package = "universalmotif"))
    jaspar.rc <- motif_rc(jaspar)

[Package universalmotif version 1.2.1 Index]