UG-class             package:AnnBuilder             R Documentation

_C_l_a_s_s "_U_G" _a _s_u_b-_c_l_a_s_s _o_f _p_u_b_R_e_p_o _t_o _h_a_n_d_l_e _d_a_t_a _f_r_o_m _U_n_i_G_e_n_e

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

     This class is a sub-class of pubRepo that is implemented
     specifically to parse data from UniGene (XX.data.gz, where XX is a
     abbreviation for a given organism)

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("UG", ...)'. A
     constructor (UG) is available and should be used to instatiate
     objects of this class

_S_l_o_t_s:

     '_o_r_g_N_a_m_e': Object of class '"character"' a character string for
          the name of the organism of concern

     '_s_r_c_U_r_l': Object of class '"character", from class "pubRepo"' a
          character string for the url of the source data

     '_p_a_r_s_e_r': Object of class '"character", from class "pubRepo"'  a
          character string for the name of the file containing a
          segment of perl code with instructions on how the source data
          will be processed and output be generated 

     '_b_a_s_e_F_i_l_e': Object of class '"character", from class "pubRepo"' a
          character string for the name of the file that contains data
          that will be used as the base to process the source data. 
          Data from the source that are related to elements in the base
          file will be extracted. baseFile is assumed to be a two
          folumn file with the first column being some type of
          arbitrary ids (e.g. Affymetrix probe ids) and the second
          cloumn being the corresponding ids of a given public
          repository (e.g. GenBank accession numbers or UniGene ids)

_E_x_t_e_n_d_s:

     Class '"pubRepo"', directly.

_M_e_t_h_o_d_s:

     _o_r_g_N_a_m_e<- 'signature(object = "UG")': Sets the value for the
          organism slot

     _o_r_g_N_a_m_e 'signature(object = "UG")': Gets the value for the
          organism slot

_N_o_t_e:

     This class is part of Bioconductor project at Dana-Farber Cancer
     Institute to provide Bioinformatics functionalities through R

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

     Jianhua Zhang

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

     <URL: www.ncbi.nlm.nih.gov/UniGene>

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

     'pubRepo-class'

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

     ## Not run: 
     # Parse a truncated version of Hs.data.gz from Bioconductor
     path <- file.path(.path.package("pubRepo"), "data")
     temp <- matrix(c("32469_f_at", "D90278", "32469_at", "L00693", "33825_at",
     "X68733", "35730_at", "X03350", "38912_at", "D90042", "38936_at",
     "M16652"), ncol = 2, byrow = TRUE)
     write.table(temp, "tempfile", sep = "\t", quote = FALSE,
     row.names = FALSE, col.names = FALSE)  
     ug <- UG(srcUrl =
     "http://www.bioconductor.org/datafiles/wwwsources/Ths.data.gz",
     parser = file.path(path, "basedUGParser"), baseFile = "tempfile",
     organism = "human")
     data <- parseData(ug)
     unlink("tempfile")
     ## End(Not run)

