Description Usage Arguments Details Value Warning Author(s) Examples
View source: R/distributeFiles.R
This function distributes files from the master node to the disk of the slaves in the computer cluster.
1 2 3 4 5 |
files |
A |
to |
A |
protocol |
A |
hierarchicallyDist |
A logical value. If |
master |
A logical value. If |
delExistTo |
A logical value. If |
full.names |
A logical value. If |
cluster |
A cluster object obtained from the function makeCluster in the SNOW package.
For default |
verbose |
A logical value. If |
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.
Starting the cluster with the command makeCluster
generates an cluster object in the affyPara environment (.affyParaInternalEnv) and
no cluster object in the global environment. The cluster object in the affyPara environment will be used as default cluster object,
therefore no more cluster object handling is required.
The makeXXXcluster
functions from the package SNOW can be used to create an cluster object in the global environment and
to use it for the preprocessing functions.
A list of two objects
to |
A |
CELfiles |
A list of |
For protocol "R" hierarchically distribution not yet available.
Markus Schmidberger schmidb@ibe.med.uni-muenchen.de, Ulrich Mansmann mansmann@ibe.med.uni-muenchen.de
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
library(affyPara)
makeCluster(10)
path <- "tmp/CELfiles"
CELfiles <- list.files(path,full.names=TRUE)
distList <- distributeFiles(CELfiles, protocol="RCP", verbose=TRUE)
stopCluster()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.