File: Enrichment.R

package info (click to toggle)
r-bioc-tfbstools 1.20.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 920 kB
  • sloc: xml: 1,137; ansic: 590; asm: 54; sh: 13; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7

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")
}