sumChannels {RNAither}R Documentation

Summarize channels

Description

Summarizes two channels, for example by computing their ratio.

Usage

sumChannels(header, dataset, funName, colname4ch1, colname4ch2)

Arguments

header the header of a dataset file generated with generateDatasetFile
dataset an R data frame generated with generateDatasetFile
funName the function used to summarize the two channels, for example divideChannels
colname4ch1 a character string specifying the name of the dataset column containing the first channel
colname4ch2 a character string specifying the name of the dataset column containing the second channel

Details

The original dataset columns are saved as extra columns with the suffix ".old" by the function saveOldIntensityColumns.

Value

A list containing:

header the header with an entry about the channel summarization added in the comments section
newDataset the new dataset

See Also

eraseDataSetColumn, divideChannels, saveOldIntensityColumns

Examples

data(exampleHeader, package="RNAither")
data(exampleDataset, package="RNAither")

newdataset=sumChannels(header, dataset, divideChannels, "SigIntensity", "NbCells")

[Package RNAither version 1.4.6 Index]