plotAvgViewpoint: Plot coverage around a set of virtual 4C viewpoints

Description Usage Arguments Value Examples

View source: R/viewPoints.R

Description

Plots summarised coverage of interactions around a set of viewpoints, e.g. promoters. This function requires the output of 'viewPoint()' as input.

Usage

1
2
3
4
5
6
7
8
9
plotAvgViewpoint(
  x,
  left_dist = 100000,
  right_dist = 100000,
  ylab = "Average signal",
  xlab = "Relative position",
  fix = "center",
  ...
)

Arguments

x

A GInteractions object which is output from viewPoint

left_dist

Distance 'left' of interactions to consider, in bp.

right_dist

Distance 'right' of interactions to consider, in bp.

ylab

Y axis label.

xlab

X axis label.

fix

One of 'center', 'start', 'end'. Passed to 'resize'. Interaction distances are calculated relative to this part of the bait.

...

additional arguments to plot

Value

Coverage that is plotted (invisibly)

Examples

1
2
3
4
5
6
data(hic_example_data)
library(GenomicRanges)
pos <- GRanges(seqnames='chr15', ranges=IRanges(start=59477709, end=59482708))
region <- GRanges(seqnames='chr15', ranges=IRanges(start=58980209, end=59980208))
vp <- viewPoint(hic_example_data, pos, region)
plotAvgViewpoint(vp, left_dist = 1000000, right_dist = 100000)

GenomicInteractions documentation built on Nov. 8, 2020, 8:19 p.m.