root.expr                package:xps                R Documentation

_C_r_e_a_t_e _c_l_a_s_s _E_x_p_r_T_r_e_e_S_e_t _a_c_c_e_s_s_i_n_g _R_O_O_T _e_x_p_r_e_s_s_i_o_n _f_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     Create class ExprTreeSet accessing ROOT expression file.

_U_s_a_g_e:

     root.expr(xps.scheme, rootfile = character(0), treetype = character(0), treenames = "*")

_A_r_g_u_m_e_n_t_s:

xps.scheme: A 'SchemeTreeSet' containing the correct scheme for the
          ROOT data file.

rootfile: name of ROOT data file, including full path.

treetype: tree type.

treenames: optional 'character' vector of tree names to get only subset
          of trees.

_D_e_t_a_i_l_s:

     An S4 class 'ExprTreeSet' will be created, serving as R wrapper to
     the  existing 'ROOT' expression file 'rootfile'.

     Parameter 'treetype' must be supplied to identify the ROOT trees
     for slot 'data'. Valid tree types are listed in 'validTreetype'.

     To get the names of all trees with their extensions 'treetype',
     which are stored in 'rootfile', you can call function
     'getTreeNames' first.

     If the 'ExprTreeSet' should only handle a subset of the trees
     stored in  'rootfile', the tree names must be supplied as vector
     'treenames'.

_V_a_l_u_e:

     A 'ExprTreeSet' object.

_A_u_t_h_o_r(_s):

     Christian Stratowa

_S_e_e _A_l_s_o:

     'root.data', 'root.call'

_E_x_a_m_p_l_e_s:

     ## first, load ROOT scheme file and ROOT data file
     scheme.test3 <- root.scheme(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
     data.test3 <- root.data(scheme.test3, paste(.path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

     # rma
     all.rma <- rma(data.test3,"tmp_Test3RMAAll",tmpdir="",background="pmonly",normalize=TRUE,verbose=FALSE)

     ## use subset of trees
     sub.rma <- root.expr(scheme.test3, "tmp_Test3RMAAll.root", "mdp", c("TestA2.mdp", "TestB1"))

