R/Enrichment.R

Defines functions tfbsEnrichment

tfbsEnrichment <- function(pwm, query, background, cutoff=0.8){
  queryHits <- searchSeq(pwm, query, strand="+", min.score=cutoff)
  foo1 <- as(queryHits, "GRanges")
  backgroundHits <- searchSeq(pwm, background, strand="+", min.score=cutoff)
  foo2 <- as(backgroundHits, "GRanges")
}

Try the TFBSTools package in your browser

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

TFBSTools documentation built on Nov. 8, 2020, 8:14 p.m.