sumChannels: Summarize channels

Description Usage Arguments Details Value See Also Examples

View source: R/general_functions.R

Description

Summarizes two channels, for example by computing their ratio.

Usage

1
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

1
2
3
4
data(exampleHeader, package="RNAither")
data(exampleDataset, package="RNAither")

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

RNAither documentation built on Nov. 8, 2020, 8:06 p.m.