seqbind                package:bio3d                R Documentation

_C_o_m_b_i_n_e _S_e_q_u_e_n_c_e_s _b_y _R_o_w_s _W_i_t_h_o_u_t _R_e_c_y_c_l_i_n_g

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

     Take a pair of vector or matrix arguments and combine them
     row-wise without recycling the shorter argument (as is the case
     with 'rbind').

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

     seqbind(a, b, blank = "-")

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

       a: a vector or matrix. 

       b: a vector or matrix to be appended to 'a'. 

   blank: a character to add to the shorter argument, to achieve the
          same length as the longer argument. 

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

     A matrix combining the 'a' and 'b' input arguments row-wise.

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

     Barry Grant

_R_e_f_e_r_e_n_c_e_s:

     Grant, B.J. et al. (2006) _Bioinformatics_ *22*, 2695-2696.

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

     'seqaln', 'read.fasta', 'read.pdb', 'write.fasta', 'rbind'

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

     ## Not run: 
     ## Read two pdbs
     a.pdb <- read.pdb( system.file("examples/1bg2.pdb", package="bio3d") )
     b.pdb <- read.pdb( system.file("examples/d1goja_.ent", package="bio3d") )

     seqs <- seqbind(aa321(a.pdb$atom[a.pdb$calpha,"resid"]),
                     aa321(b.pdb$atom[b.pdb$calpha,"resid"]))

     # seqaln(seqs)
     ## End(Not run)

