convert_aln_amino           package:bgafun           R Documentation

_C_o_n_v_e_r_t_s _a_n _a_l_i_g_n_m_e_n_t _o_b_j_e_c_t _i_n_t_o _b_i_n_a_r_y _a_m_i_n_o _m_a_t_r_i_x

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

     Converts an alignment object, read in by the seqinr package, into
     a binary matrix. The binary matrix represents the absence or
     presence of amino acids at each position in the alignment

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

      convert_aln_amino(Alignment)

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

Alignment: Alignment object read in using read.alignment function in
          seqinr 

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

     library(bgafun)
     LDH <- read.alignment(file = system.file("sequences/LDH-MDH-PF00056.fasta", package = "bgafun"), format = "fasta")
     LDH.amino=convert_aln_amino(LDH)
     dim(LDH.amino)

