matrixByPlate: Internal function to reorganize qPCR data into a rectangular structure.
Description
This function takes a vector of Ct values from a single qPCR experiment and
reorganizes it into a matrix structure. Each column in the matrix represents a
different plate that was used in the experiment.
Usage
matrixByPlate(xvec, plateIndex)
Arguments
xvec
Numeric vector of Ct values.
plateIndex
Character vector, denoting plate index of each gene or primer pair.
Value
A matrix object.
Details
On the resulting matrix structure:
The number of rows equals the maximum number of genes or primer pairs that were used on a plate in the experiment.
For plates with less genes, NA values are padded at the end of the column vector to complete the rectangular structure.
Note: these NA values do not affect downstream calculations.