if(require("PWMEnrich.Dmelanogaster.background")){
data(MotifDb.Dmel)
ttk = MotifDb.Dmel[["ttk"]]
scanWithPWM(ttk, DNAString("CGTAGGATAAAGTAACT")) # odds average over the two strands expressed as log2-odds
scanWithPWM(ttk, DNAString("CGTAGGATAAAGTAACT"), both.strands=TRUE) # log2-odds scores on both strands
}
Run the code above in your browser using DataLab