smlSet-class             package:GGtools             R Documentation

_C_l_a_s_s "_s_m_l_S_e_t" - _e_f_f_i_c_i_e_n_t _r_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _S_N_P+_e_x_p_r_e_s_s_i_o_n _d_a_t_a,
_b_a_s_e_d _o_n _C_l_a_y_t_o_n _s_n_p_M_a_t_r_i_x _p_a_c_k_a_g_e

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

     Efficient representation of SNP+expression data, based on Clayton
     snpMatrix package.  Supports efficient subsetting of whole-genome
     snp genotyping by chromosome.

_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("smlSet", smlEnv,
     assayData, phenoData, featureData, experimentData, annotation,
     ...)'.

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


     '_s_m_l_E_n_v': Object of class '"environment"' - there is one key
          'smList' with value a list of 'snp.matrix' from snpMatrix
          package 

     '_s_n_p_L_o_c_P_a_t_h_M_a_k_e_r': OBSOLETE - IGNORE

     '_c_h_r_o_m_I_n_d_s': Object of class '"numeric"', a numeric vector telling
          what chromosomes are represented. If chromosomes 20 and 21
          are present, the values is c(20,21).  X and Y are 23, 24.

     '_o_r_g_a_n_i_s_m': Object of class '"character"'; string such as Hs for
          modern humans. 

     '_a_s_s_a_y_D_a_t_a': Object of class '"AssayData"'; container for
          expression data as in ExpressionSet 

     '_p_h_e_n_o_D_a_t_a': Object of class '"AnnotatedDataFrame"'; container for
          sample data as in ExpressionSet  

     '_f_e_a_t_u_r_e_D_a_t_a': Object of class '"AnnotatedDataFrame"'; container
          for expression feature data as in ExpressionSet

     '_e_x_p_e_r_i_m_e_n_t_D_a_t_a': Object of class '"MIAME"'; container for MIAME
          schema  

     '_a_n_n_o_t_a_t_i_o_n': Object of class '"character"'; vector with names
          'exprs' and 'snps'; 'exprs' should be the name of a
          SQLite-based Bioconductor annotation package  

     '.___c_l_a_s_s_V_e_r_s_i_o_n__': Object of class '"Versions"' ~~ 

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

     Class '"eSet"', directly. Class '"VersionedBiobase"', by class
     "eSet", distance 2. Class '"Versioned"', by class "eSet", distance
     3.

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


     [ 'signature(x = "smlSet")': subsetting must be done with care.
          The usual idiom is 'X[G, S]' where 'G' restricts reporters
          and 'S' restricts samples.  Reporter restriction: At present
          one can use an instance of 'chrnum' class to obtain a
          subsetted object with SNP data restricted to specified
          chromosomes. Sample restriction: works in the customary way
          for 'eSet' instances. 

     _e_x_p_r_s 'signature(object = "smlSet")': return the expression data
          matrix. 

     _g_w_S_n_p_S_c_r_e_e_n 'signature(sym = "genesym", sms = "smlSet")': Execute
          snpMatrix snp.rhs.tests for all SNP in the genome.  Returns
          instance of gwSnpScreenResult. 

     _c_w_S_n_p_S_c_r_e_e_n 'signature(sym = "genesym", sms = "smlSet",
          cnum="chrnum")': Execute snpMatrix snp.rhs.tests for all SNP
          on the specific chromosome.  Returns instance of
          cwSnpScreenResult. 

     _n_s_a_m_p 'signature(x = "smlSet")': returns number of samples. 

     _r_a_w_S_N_P 'signature(x = "smlSet", chrind = "numeric")': returns byte
          (raw) representation of SNP data in snp.matrix format for
          specified chromosome.  

     _g_e_t_S_n_p_L_o_c_s 'signature(x = "smlSet")': returns all relevant
          locations in order of rs numbers in the snp.matrices as a
          single vector

     _g_e_t_S_n_p_C_h_r_o_m_s 'signature(x = "smlSet")': returns all relevant
          chromosome assignments in order of rs numbers in the
          snp.matrices as a single vector

     _s_a_m_p_l_e_N_a_m_e_s 'signature(object = "smlSet")': returns vector of
          sample names. 

     _s_h_o_w 'signature(object = "smlSet")': prints short report. 

     _s_m_L_i_s_t 'signature(x = "smlSet")': returns the list of snp.matrix
          encoding genotypes. 

     _s_m_l_E_n_v 'signature(x = "smlSet")': returns the environment in which
          the smList list is contained. 

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

     VJ Carey <stvjc@channing.harvard.edu>

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

     #showClass("smlSet")
     data(hmceuB36.2021)
     rawSNP(hmceuB36.2021, 20)[1:5,1:5]
     exprs(hmceuB36.2021)[1:5,1:5]

