PlotRelDistDistribution: Plot distribution of relative distances.

Description Usage Arguments Details Value Author(s)

View source: R/plot.R

Description

Plot distribution of relative distances between sites from two txLoc objects. See 'Details'.

Usage

1
2
PlotRelDistDistribution(txLoc, txLocRef, flank = 1000, binWidth = 20,
  doBootstrap = TRUE)

Arguments

txLoc

A txLoc object.

txLocRef

A txLoc object.

flank

An integer scalar or an integer vector of length 2; specifies the absolute maximum relative distance(s) used as a cutoff; by specifying flank as a vector, a non-symmetric window can be defined; e.g. 'flank = c(1000, 2000)' corresponds to a window defined by 1000 nt downstream and 2000 nt upstream of the reference site. Default is 1000.

binWidth

An integer scalar; specifies the spatial width in nt by which distances will be binned; default is 20.

doBootstrap

A logical scalar; if YES calculate 95 transcript region; default is TRUE.

Details

The function calculates minimum distances per transcript region, between entries from txLoc relative to txLocRef. Relative distances are shown within a window (-flank, flank), where negative distances correspond to a feature from txLoc that is upstream of a site from txLocRef, and positive distances indicate a feature from txLoc that is downstream of a site from txLocRef. Relative distances are binned in bins of binWidth nt, and shown as an abundance histogram. If doBootstrap = TRUE, 95 are calculated and shown, based on an empirical bootstrap of relative distances.

Value

NULL.

Author(s)

Maurits Evers, maurits.evers@anu.edu.au


mevers/RNAModR documentation built on Nov. 17, 2019, 9:11 a.m.