distributeFiles           package:affyPara           R Documentation

_D_i_s_t_r_i_b_u_t_e _f_i_l_e_s _t_o _s_l_a_v_e_s

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

     This function distributes files from the master node to the disk
     of the slaves in the computer cluster.

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

     distributeFiles(cluster, 
             files, to = "/usr1/tmp/CELfiles",
             protocol = c("R", "RCP", "SCP"), hierarchicallyDist = FALSE, 
             master=TRUE,
             full.names=FALSE, verbose = FALSE)
             
     hirarchicalDistSF(to, nodes, protocol)

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

 cluster: A cluster object obtained from the function makeCluster in
          the 'SNOW' package. 

   files: A 'character' vector containing the names of the files. 

      to: A 'character' that defines the path where the files should be
          stored at the slaves. 

protocol: A 'character' that defines the Copy-Protocol: "R", "RCP",
          "SCP" 

hierarchicallyDist: A logical value. If 'TRUE' data will be
          hierarchically distributed to all slaves. If 'FALSE' at every
          slave only a part of data is available. 

  master: A logical value. If 'TRUE' all data will be copied to the
          'to' directory at the master node. 

full.names: A logical value. If 'TRUE', the directory path is prepended
          to the file names. If 'FALSE', only the file names are
          returned . 

 verbose: A logical value. If 'TRUE' it writes out some messages.

   nodes: A list of 'character' with the node names where the files
          have to be send.

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

     This function distributes files from the master node to the disk
     of the slaves in the computer cluster. First the vector of files
     get partitioned by the number of slaves. Then the parts will be
     copied to the 'to' directory at the slaves. If
     'hierarchicallyDist' is 'TRUE', all slaves change the files among
     each other and in the end at every slave all files are located.
     (But this is not necessary for distributed computing with the
     'affyPara' package.

     For using this function a computer cluster using the 'SNOW'
     package has to be started.

     'hirarchicalDistSF' is a internal function which will be executed
     at slaves.

'_h_i_r_a_r_c_h_i_c_a_l_D_i_s_t_S_F' Slavefunction for exchanging the files between all
     slaves.

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

     A list of two objects 

      to: A 'character' that defines the path where the files are
          located at the slaves.

CELfiles: A list of 'characters', how the files are distributed to the
          slaves.

_W_a_r_n_i_n_g:

     For protocol "R" hierarchically distribution not yet available.

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

     Markus Schmidberger schmidb@ibe.med.uni-muenchen.de, Ulrich
     Mansmann mansmann@ibe.med.uni-muenchen.de

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

     ## Not run: 
     library(affyPara)

     c1 <- makeCluster(10)

     path <- "tmp/CELfiles"
     CELfiles <- list.files(path,full.names=TRUE)

     distList <- distributeFiles(c1, CELfiles, protocol="RCP", verbose=TRUE)

     stopCluster(c1)
     ## End(Not run)

