pfm2pwm: convert pfm object to PWM

Description Usage Arguments Value Author(s) See Also Examples

View source: R/publicUtilities.R

Description

convert pfm object to PWM

Usage

1
pfm2pwm(x, N = 10000)

Arguments

x

an object of pfm or pcm or matrix

N

Total number of event counts used for pfm generation.

Value

A numeric matrix representing the Position Weight Matrix for PWM.

Author(s)

Jianhong Ou

See Also

PWM

Examples

1
2
3
library("MotifDb")
matrix.fly <- query(MotifDb, "Dmelanogaster")
pfm2pwm(matrix.fly[[1]])

motifStack documentation built on Nov. 8, 2020, 7:43 p.m.