SizeSeqFasta              package:GeneR              R Documentation

_S_i_z_e _o_f _a _s_e_q_u_e_n_c_e _f_r_o_m _a _f_a_s_t_a/_e_m_b_l/_g_b_k _f_i_l_e

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

     Give the size of a sequence from a fasta/embl/gbk file.

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

     sizeSeqFasta(file,name=NA)
     sizeSeqEmbl(file,name=NA, index="ix")
     sizeSeqGbk(file,name=NA)

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

    file: File name of the bank

    name: Name of the sequence in the bank (default: first sequence)

   index: character. "ix": Name is accn of sequence. 
           "id" : Le name is id of sequence. 

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

     Size of sequence, NULL if error.

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

     P.Durosay(C). L.Cottret(R)

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

     'readSeq'

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

     seqNcbi("NC_004718",file="NC_004718.gbk",type="G")
     sizeSeqGbk("NC_004718.gbk")
     # Or:
     sizeSeqGbk("NC_004718.gbk","NC_004718")


     # Idem with fasta format
     seqNcbi("NC_004718",file="NC_004718.fa",type="F")
     sizeSeqFasta("NC_004718.fa")
     # Or:
     sizeSeqFasta("NC_004718.fa","gi|30271926|ref|NC_004718.3|")

     ## Not run: 
     # With Embl
     download.file("http://bioinfo.hku.hk/sars/AY291451.seq",
     destfile="AY291451.seq")
     sizeSeqEmbl("AY291451.seq")
     ## End(Not run)

