Learn R Programming

ChIPpeakAnno (version 3.6.5)

featureAlignedSignal: extract signals in given ranges

Description

extract signals in the given feature ranges

Usage

featureAlignedSignal(cvglists, feature.gr, upstream, downstream, n.tile=100, ...)

Arguments

cvglists
List of SimpleRleList or RleList
feature.gr
An object of GRanges with identical width.
upstream, downstream
upstream or dwonstream from the feature.gr. It is used for x-axis label.
n.tile
The number of tiles to generate for each element of feature.gr, default is 100
...
Not used.

Value

A list of matrix. In each matrix, each row record the signals for corresponding feature.

See Also

See Also as featureAlignedHeatmap, featureAlignedDistribution

Examples

Run this code
  cvglists <- list(A=RleList(chr1=Rle(sample.int(5000, 100), 
                                      sample.int(300, 100))), 
                   B=RleList(chr1=Rle(sample.int(5000, 100), 
                                      sample.int(300, 100))))
  feature.gr <- GRanges("chr1", IRanges(seq(1, 4900, 100), width=100))
  featureAlignedSignal(cvglists, feature.gr, zeroAt=50, type="l")

Run the code above in your browser using DataLab