R/mismatch.r

Defines functions mismatch

Documented in mismatch

mismatch <- function(probes, bgp, intensity) {
  # Function for calculating GC-based bkg correction:
	med.gcList <- bgp[,.(MedianGC = median(intensity[fid])), keyby = .(GC.count)]
	mmIndex <- probes[,as.numeric(GC.count) - (min(as.numeric(GC.count)) - 1)]
	MM <- med.gcList[[2]][mmIndex]
	return(MM)
}
harrisgm/GCSscore documentation built on Jan. 1, 2023, 12:04 a.m.