R/beadLevelData_backgroundCorrect.R

Defines functions backgroundCorrectSingleSection

Documented in backgroundCorrectSingleSection

backgroundCorrectSingleSection = function(BLData, array=1 ,fg="Grn" , bg="GrnB" ,newName = "Grn.bc"){

##Check that the value of array is valid

	fgI = getBeadData(BLData, array=array, what=fg)
	bgI = getBeadData(BLData, array=array, what=bg)	

	data = fgI - bgI

	BLData = insertBeadData(BLData, array=array, data = data, what = newName)

	

	BLData
}

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.