R/hotspotFinder.R

Defines functions hotspotFinder

Documented in hotspotFinder

hotspotFinder <-
function(peak,numgene){
	
	
if((dim(peak)[2] != 9) & (dim(peak)[2] !=3 )){
  stop("The peak data.frame need to be 3 or 9 columns.")
}
	   
out2 <- split(peak, peak[,2])
lapply(out2,dim)
out2 <- out2[which(lapply(out2,nrow) >= numgene)]
return(out2)
}
raphg/iBMQ documentation built on May 26, 2019, 11:06 p.m.