peaks = RangedData(IRanges(start=c(100, 500), end=c(300, 600),
names=c("peak1", "peak2")),
space=c("NC_008253", "NC_010468"))
filepath =system.file("extdata", "examplePattern.fa",
package="ChIPpeakAnno")
library(BSgenome.Ecoli.NCBI.20080805)
summarizePatternInPeaks(patternFilePath=filepath, format="fasta",
skip=0L, BSgenomeName=Ecoli, peaks=peaks)
Run the code above in your browser using DataLab