makePWM: Constructing a pwm object

Description Usage Arguments Value Author(s) Examples

View source: R/seqLogo2.R

Description

This function constructs an object of class pwm from a matrix. It checks that the matrix has correct dimensions and that columns add up to 1.0.

Usage

1
makePWM(pwm, alphabet="DNA")

Arguments

pwm

Matrix representing the positon weight matrix

alphabet

Character the alphabet making up the sequence. Currently, only "DNA" is supported.

Value

An object of class pwm.

Author(s)

Oliver Bembom, bembom@berkeley.edu

Examples

1
2
3
#mFile <- system.file("Exfiles/pwm1", package="seqLogo")
#m <- read.table(mFile)
#pwm <- makePWM(m)

MotIV documentation built on April 28, 2020, 6:51 p.m.