sumChannels {RNAither} | R Documentation |
Summarizes two channels, for example by computing their ratio.
sumChannels(header, dataset, funName, colname4ch1, colname4ch2)
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 |
The original dataset columns are saved as extra columns with the suffix ".old"
by the function saveOldIntensityColumns
.
A list containing:
header |
the header with an entry about the channel summarization added in the comments section |
newDataset |
the new dataset |
eraseDataSetColumn
, divideChannels
, saveOldIntensityColumns
data(exampleHeader, package="RNAither") data(exampleDataset, package="RNAither") newdataset=sumChannels(header, dataset, divideChannels, "SigIntensity", "NbCells")