Learn R Programming

RNAither (version 2.20.0)

sumChannels: 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

Value

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

Details

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

See Also

eraseDataSetColumn, divideChannels, saveOldIntensityColumns

Examples

Run this code
data(exampleHeader, package="RNAither")
data(exampleDataset, package="RNAither")

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

Run the code above in your browser using DataLab