Description Usage Arguments Value Author(s) Examples
Counting reads in giving features.
1 2 | countTable(features, bamfiles, colData, samples = bamfiles,
windowSize = 200L, mode = IntersectionNotStrict, ...)
|
features |
an object of GRanges |
bamfiles |
filenames of aligned reads |
colData |
a DataFrame or data.frame with at least a single column. Rows of colData correspond to bamfiles |
samples |
names of samples, could be same length with bamfiles |
windowSize |
the size of windows for counts |
mode |
mode of counts. See summarizeOverlaps for details. Default is IntersectionNotStrict. |
... |
parameters could be passed to summarizeOverlaps |
a list of RangedSummarizedExperiment
Jianhong Ou
1 2 3 4 5 6 | path <- system.file("extdata", package = "diffPeaks", mustWork = TRUE)
bamfiles <- dir(path, "bam$")
peaks <- dir(path, "bed$")
p <- mergePeaks(file.path(path, peaks))
colData <- DataFrame(samples=bamfiles, condition=sub(".rep..bam", "", bamfiles))
cnt <- countTable(p, file.path(path, bamfiles), colData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.