getFASTAname              package:SLGI              R Documentation

_O_b_t_a_i_n _s_e_q_u_e_n_c_e _n_a_m_e _f_r_o_m _F_A_S_T_A _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Extract the name of a sequence from a FASTA object that created by
     'readFASTA' function from 'Biostrings' package.

_U_s_a_g_e:

     getFASTAname(Fobj)

_A_r_g_u_m_e_n_t_s:

    Fobj: is a FASTA object created by 'readFASTA' function from
          'Biostrings' package.

_D_e_t_a_i_l_s:

     The function gets the first string between ">" and space the
     "desc" element of the 'Fobj', which is the names of the sequence.

_V_a_l_u_e:

     A character string.

_A_u_t_h_o_r(_s):

     Z. Jiang

_S_e_e _A_l_s_o:

     'readFASTA'

_E_x_a_m_p_l_e_s:

     f <- gzfile(file.path(.path.package("SLGI"), "extdata/orf_trans.fasta.gz"), open = "rt")
     library(Biostrings)
     yeastF <- readFASTA(f)
     sapply(yeastF[1:5],getFASTAname)

