Learn R Programming

affyPara (version 1.32.0)

splitObjects: Functions to split objects into parts

Description

Functions to split an AffyBatch, a list of files and a matrix into several objects for distributed computing. If possible objects will be of the same size.

Usage

splitAffyBatch(abatch, number.part) splitFileVector(fileVec, number.part) splitMatrix(matrix, number.part)

Arguments

abatch
An object of class AffyBatch.
fileVec
A character vector containing the names of the files.
matrix
An object of class matrix.
number.part
Number of parts to split the object

Value

A list of the split objects.

Details

splitAffyBatch
Splits an AffyBatch into a list of AffyBatches.

splitFileVector
Splits a character vector of file names into a list of character vectors with file names.

splitMatrix
Splits a matrix by columns into a list of matrices.

These functions use the functions splitIndices and splitCols from the SNOW package.

Examples

Run this code
library(affyPara)
if (require(affydata)) {
  data(Dilution)

  spAffyB <- splitAffyBatch(Dilution, 2)
}

Run the code above in your browser using DataLab