if(require("PWMEnrich.Dmelanogaster.background")){
data(MotifDb.Dmel)
data(MotifDb.Dmel.PFM)
# the nucleotide distribution is taken from the PWM (in this case genomic background)
motifIC(MotifDb.Dmel[["ttk"]])
# information content with default uniform background because the input is a matrix, not PWM object
motifIC(MotifDb.Dmel.PFM[["ttk"]])
}
Run the code above in your browser using DataLab