revcompMotif {motifcounter}R Documentation

Reverse complements a PFM

Description

This function computes the reverse complement of a given PFM.

Usage

revcompMotif(pfm)

Arguments

pfm

An R matrix that represents a position frequency matrix

Value

Reverse complemented PFM

Examples


# Load motif
motiffile = system.file("extdata", "x1.tab", package = "motifcounter")
motif = t(as.matrix(read.table(motiffile)))

# Reverse complement motif
revcompmotif = motifcounter:::revcompMotif(motif)


[Package motifcounter version 1.14.0 Index]