R/standardIlluminaChannels.R

Defines functions logRatioTransform redChannelTransform logRedChannelTransform greenChannelTransform logGreenChannelTransform

Documented in greenChannelTransform logGreenChannelTransform logRatioTransform logRedChannelTransform redChannelTransform

logGreenChannelTransform = function(BLData, array){

	x = getBeadData(BLData, array=array,what="Grn")

    return(log2.na(x))
}

greenChannelTransform = function(BLData, array){

	x = getBeadData(BLData, array=array,what="Grn")
    return(x)

}



logRedChannelTransform = function(BLData,array){

	x = getBeadData(BLData, array=array,what="Red")

    return(log2.na(x))
}


redChannelTransform = function(BLData,array){

	x = getBeadData(BLData, array=array,what="Red")
    return(x)

}


logRatioTransform = function(BLData, array=array){

	x = getBeadData(BLData, array=array,what="Grn")

	y = getBeadData(BLData, array=array,what="Red")	

    return( log2.na(x) - log2.na(y) )	
}




greenChannel <- new("illuminaChannel", logGreenChannelTransform, illuminaOutlierMethod, function(x) mean(x,na.rm=TRUE), function(x) sd(x,na.rm=TRUE),  "G")

Try the beadarray package in your browser

Any scripts or data that you put into this service are public.

beadarray documentation built on Nov. 8, 2020, 4:51 p.m.