fitBmea.Snow: Fit the BMEA process for a number of genes utilising the snow...

Description Usage Arguments Details Value See Also

Description

Enables genes to be fit in parallel, utilising the architecture of the snow package

Usage

1
2
fitBmea.Snow(celSet, bgCelSet, cl, units = NULL, batchSize = NULL,
  conditions, contMatrix, ..., nodePaths = NULL)

Arguments

celSet

the celSet which is being processed

bgCelSet

a list with components lambda & delta. Each component must be a celSet containing the information for the background signal priors

cl

A cluster as formed by makeCluster or similar from the package snow

units

the units to be processed

batchSize

the number of units to process before writing to disk. Defaults to 16 (2^4)

conditions

a vector of factors

contMatrix

the contrasts

...

used for passing arguments to fitBmeaBatch, writeBmeaBatch & runMCMC.BMEA

nodePaths

Where each node in the cluster will write it's output

Details

This process will split the supplied units into vectors of equal length, with one for each node in the supplied cluster. The BMEA process will be fit in series for the vector of units on each parallel node. Depending on the computing architecture being used & the size of the dataset, this process can still take a number of hours, to a number of days.

Due to the architecture of the snow package, all arguments will be first sent to .GlobalEnv with the prefix 'bmeaTemp.'. Any objects in .GlobalEnv with this prefix will be deleted as part of the process, so users should avoid using this string as part of the name of any objects.

On each node, the genes will be fit in series & the results saved to disk periodically as a batch, with the results saved as CEL files. The number of genes fit in each batch is determined by the batchSize argument. Each time the results for a batch of units are written to disk, a log file with the name parentName.log.txt will be updated to ensure minimum data is lost in the case of any interuptions. These log files are recorded in a node-specific manner in the directory "nodePath/bmeaData". The results for each parameter in the paramToSave argument will be written to CEL files on each node in the directories nodePath/bmeaData/modelData, whilst the contrasts specified in the contrast matrix will be written to the directories nodePath/bmeaData/contrastData.

If the mcmcParam argument is not specified as part of the '...' the defaults of nChains=3, nIter=16000, nBurnin=8000 & nThin=8 will be used. The default values for zGene (4.265) & zExon (1.645) will also be used if not specified.

If the paramToSave argument is not specified, the default of the chip effects ("c"), condition-specific effects ("mu") and the exon-level terms ("phi") will be saved. If the paramToWrite argument is not specified, it will default to the same as the paramToSave argument.

After the process has been run, the saved data for the sets of parallel units can be merged via the function mergeNodes.

Value

Returns a list object with the elements:

See Also

mergeNodes, AffymetrixCelSet, AffymetrixCelSetList, makeCluster


steveped/BMEA documentation built on May 30, 2019, 5:38 p.m.