This function imports the data from two matrices that contain counts summarized per position. It computes the normalization factors from the input (one per position) and creates a DChIPRepResults object.
importDataFromMatrices(inputData, chipData, sampleTable)
a matrix containing the counts for the input per position.
a matrix containing the counts for the ChIP per position.
a data.frame that has to contain the columns sampleID,
upstream, downstream and condition. Each row of the table describes one
experimental sample. See
The normalization factors are computed as
t(t(inputData) * (covC/covI)) , Where covC and covI contain the total
sum of the ChIP and the input samples. Zero normalization factors can arise
if the input has zero counts for certain
positions. That's why input values equal to zero are set to 1
in order to always
obtain valid normalizationFactors.
a DChIPRepResults object containing the imported data as a
1 2 3 4 5 6