split: Functions to split objects into parts

Description Usage Arguments Details Value Author(s) Examples

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

1
2
3
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

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.

Value

A list of the split objects.

Author(s)

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

Examples

1
2
3
4
5
6
library(affyPara)
if (require(affydata)) {
  data(Dilution)

  spAffyB <- splitAffyBatch(Dilution, 2)
}

affyPara documentation built on Nov. 8, 2020, 11:08 p.m.