makePWM               package:seqLogo               R Documentation

_C_o_n_s_t_r_u_c_t_i_n_g _a _p_w_m _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     makePWM(pwm, alphabet="DNA")

_A_r_g_u_m_e_n_t_s:

     pwm: 'matrix' representing the positon weight matrix

alphabet: 'character' the alphabet making up the sequence. Currently,
          only "DNA" is supported. 

_D_e_t_a_i_l_s:

_V_a_l_u_e:

     An object of class pwm.

_A_u_t_h_o_r(_s):

     Oliver Bembom, bembom@berkeley.edu

_S_e_e _A_l_s_o:

_E_x_a_m_p_l_e_s:

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

