Learn R Programming

survJamda (version 1.1.4)

writeSamples: Write batch samples for ComBat.

Description

Create a file for the batch IDs of the data sets.

Usage

writeSamples(x, batchID, fileName)

Arguments

x
Matrix of gene expression data.
batchID
A vector containing the batch IDs of the data set x. The batch ID of the data sets composing the matrix x should be in the same order of the component data sets.
fileName
A character string specifying the name of the file to be created.

Value

None.

Warning

This function is not called by the user directly.

Details

This function writes two columns in a file: Array.name and Batch. The Array.name column contains the array or sample ID which are the row names of the matrix x. The batch id in the second column can be an integer or the name of the data set. The batch id must be the same for all samples or arrays of a data set.

See Also

writeGeno,ComBat