Description Usage Arguments Value Examples
Count reads for customized regions or genome wide bins for multiple ChIP-Seq samples in BAM (.bam) or BIGWIG (.bw or .bigwig) format. When no customized peaks provided, this function will generate bin-level counts based on genome information embedded in BAM or BIGWIG files. For BAM files, counts will be generated using Rsubread package; for BIGWIG files, counts will be generated by function in rtracklayer package.
1 2 3 | regionReads(samples, colData = DataFrame(cond = basename(samples)),
peaks = NULL, binsize = 300L, bincut = 0L, readlen = NULL,
read2pos = "5", ignoreDup = TRUE)
|
samples |
A vector of paths to ChIP-seq files in Bam or Bigwig format. |
colData |
A DataFrame object contains at lease one column representing
the conditions of samples for comparison in differential binding analysis.
This object includes the meta-data describing |
peaks |
GRanges or |
binsize |
A number specify the bin size. This parameter is only
appliable when |
bincut |
A numeric cut off on read counts to nominate bins as high
coverage bins. This parameter is only appliable when |
readlen |
Sample fragment length with which Bigwig files are created.
The signal in Bigwig file is |
read2pos |
Parameter for function |
ignoreDup |
Parameter for function |
A RangedSummarizedExperiment object containing read counts for genome-wide bins or given peaks..
1 2 3 4 5 6 | library(GenomicRanges)
bams <- c(system.file("extdata", "control.bam", package="ComplexDiff"),
system.file("extdata", "treated.bam", package="ComplexDiff"))
bins <- GRanges("chr1",IRanges(start = seq(1000000,2000000,300),
end = seq(1000000,2000000,300)+300-1))
regionReads(samples=bams,peaks=bins)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.