pcm2pwm: Convert PCM to PWM

Description Usage Arguments Value Examples

Description

Convert PCM to PWM

Usage

1
pcm2pwm(pcm, pseudocount = NULL)

Arguments

pcm

matrix; n by 4 matrix of PCM / PFM

pseudocount

numeric; value of pseudocount to add to every entry of the PWM (to avoid 0 or 1 counts), or vector of pseudocounts to add to each nt position

Value

A position weight matrix

Examples

1
2
3
pcm <- t(rbind(matrix(c(rep(10,8),rep(100,8)),nrow=2),
               matrix(c(rep(20,7),0,rep(200,7),0),nrow=2)))
pcm2pwm(pcm)

MyersGroup/MotifFinder documentation built on June 7, 2019, 3:42 p.m.