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)

