| revcompMotif {motifcounter} | R Documentation |
This function computes the reverse complement of a given PFM.
revcompMotif(pfm)
pfm |
An R matrix that represents a position frequency matrix |
Reverse complemented PFM
# Load motif
motiffile = system.file("extdata", "x1.tab", package = "motifcounter")
motif = t(as.matrix(read.table(motiffile)))
# Reverse complement motif
revcompmotif = motifcounter:::revcompMotif(motif)