reduceTechnicalReplicates {NormalyzerDE}R Documentation

Remove technical replicates from data matrix

Description

Collapses sample values into their average. If only one value is present due to NA-values in other technical replicates, then that value is used.

Usage

reduceTechnicalReplicates(dataMat, techRepGroups)

Arguments

dataMat

NormalyzerDE data matrix

techRepGroups

Technical replicates vector

Value

collDataMat Reduced data matrix

Examples

techRep <- c("a", "a", "b", "b", "c", "c", "d", "d")
testData <- data.frame(
    c(1,1,1), 
    c(1,2,1), 
    c(3,3,3), 
    c(5,3,3), 
    c(5,5,4), 
    c(5,5,5), 
    c(7,7,7), 
    c(7,9,7))
colnames(testData) <- c("a1", "a2", "b1", "b2", "c1", "c2", "d1", "d2")
statObj <- reduceTechnicalReplicates(testData, techRep)

[Package NormalyzerDE version 1.0.0 Index]