PlotSpatialRatio: Plot ratio of two spatial distributions.

Description Usage Arguments Author(s) Examples

View source: R/plot.R

Description

Plot ratio of two spatial distributions.

Usage

1
2
PlotSpatialRatio(locPos, locNeg, filter = NULL, binWidth = 20,
  posMax = 1000)

Arguments

locPos

A txLoc object. These should be the positive control sites.

locNeg

A txLoc object. These should be the negative control sites.

filter

Only plot loci in transcript regions specified in filter.

binWidth

Spatial bin width. Overrides nbreaks if not NULL.

posMax

If absolute == TRUE, show spatial distribution within a window given by posMax from the 5'/3' position of the transcript feature. Default is 1000 nt.

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
bedFile <- system.file("extdata",
                       "miCLIP_m6A_Linder2015_hg38.bed",
                       package = "RNAModR");
sites <- ReadBED(bedFile);
posSites <- SmartMap(sites, id = "m6A", refGenome = "hg38");
negSites <- GenerateNull(posSites, method = "permutation");
PlotSpatialRatio(posSites, negSites, c("3'UTR", "CDS", "5'UTR"));

## End(Not run)

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