motif_rc: Get the reverse complement of a DNA or RNA motif.

Description Usage Arguments Value Author(s) Examples

View source: R/motif_rc.R

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

1
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

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

universalmotif documentation built on April 8, 2021, 6 p.m.