getLabels             package:maigesPack             R Documentation

_M_e_t_h_o_d _g_e_t_L_a_b_e_l_s _t_o _p_i_c_k _g_e_n_e _a_n_d _s_a_m_p_l_e _l_a_b_e_l_s

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

     Generic function 'getLabels' to extract labels given an ID to
     genes or samples.

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

     getLabels(obj, labelID=NULL, sLabel=TRUE)

     ## Default S3 method:
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

     ## S3 method for class 'maigesDE':
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

     ## S3 method for class 'maigesDEcluster':
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

     ## S3 method for class 'RGList':
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

     ## S3 method for class 'MAList':
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

     ## S3 method for class 'marrayRaw':
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

     ## S3 method for class 'marrayNorm':
     getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

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

     obj: object to look for labels. Methods defined for classes
          'maigesRaw', 'maiges', 'maigesDE', 'maigesDEcluster',
          'RGList', 'MAList', 'marrayRaw' and 'marrayNorm'.

 labelID: character string with label name to be searched.

  sLabel: logical indicating search in the sample labels, defaults to
          TRUE. If FALSE search is done for gene labels.

_D_e_t_a_i_l_s:

     The name of gene labels are done by the names of the slot
     'Glabels' in objects of classes 'maigesRaw' or 'maiges', the slot
     'GeneInfo' in objects of classes 'maigesDE' or 'maigesDEcluster',
     the slot 'genes' in objects of classes 'RGList' or 'MAList' and
     the slot 'maGnames@maInfo' in objects of classes 'marrayRaw' or
     'marrayNorm'. Equivalently, the name of sample labels are done by
     the names of the slots 'Slabels', 'SampleInfo', 'targets' and
     'maTargets@maInfo'.

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

     Gustavo H. Esteves <gesteves@vision.ime.usp.br>

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

     ## Loading dataset
     data(gastro)

     ## Getting the 'Tissue' label for samples in maigesRaw class object
     getLabels(gastro.raw, "Tissue", sLabel=TRUE)

     ## Getting the 'Type' label for samples in maigesNorm class object
     getLabels(gastro.summ, "Type", sLabel=TRUE)

     ## Getting the 'GeneName' label for genes (spots) in maigesRaw class object
     getLabels(gastro.raw, "GeneName", sLabel=FALSE)

     ## Getting the 'Annot' label for samples in maigesNorm class object
     getLabels(gastro.summ, "Annot", sLabel=FALSE)

