makePlot.clipping {QoRTs}R Documentation

Plot Alignment Clipping

Description

Plots the rate at which the aligner soft-clips off portions of aligned reads.

Usage

  makePlot.clipping(plotter, 
                 rate.per.million = FALSE,
                 use.readLength.denominator = TRUE, 
                 r2.buffer,
                 debugMode, 
                 singleEndMode, 
                 rasterize.plotting.area = FALSE, 
                 raster.height = 1000, 
                 raster.width = 1000, 
                 plot= TRUE, ...)

Arguments

plotter

A QoRT_Plotter reference object. See build.plotter.

rate.per.million

A logical value indicating whether or not to scale the y axis to rate-per-million-reads, rather than rate-per-read. Some people may find the results more readable this way, even though the plots themselves will appear the same.

use.readLength.denominator

Logical. If TRUE, then use the total number of reads with at least the given position's length as the denominator of the rate. This is only relevant when the dataset has variable-length trimming prior to alignment.

r2.buffer

Buffer space to place between the plotting of read 1 and read 2. By default this will choose a reasonable value.

debugMode

Logical. If TRUE, debugging data will be printed to the console.

singleEndMode

Logical. Determines whether the dataset consists of single-ended reads. By default this is determined from the data. Thus, this parameter should never need to be set by the user.

rasterize.plotting.area

Logical. If TRUE, then "flatten" the plotting lines into a raster format. This requires support for png file creation and the installation of the "png" package. Only the plotting lines will be rasterized, the axes and annotations will be vector format. Default is FALSE.

raster.height

Numeric integer. If rasterize.plotting.area is TRUE, then this will set the height of the rasterized plot, in pixels.

raster.width

Numeric integer. If rasterize.plotting.area is TRUE, then this will set the width of the rasterized plot, in pixels.

plot

Logical. If FALSE, suppress plotting and return TRUE if and only if the data is present in the dataset to allow plotting. Useful to automatically filter out missing data plots.

...

Arguments to be passed to methods, such as graphical parameters (see par).

Details

x-axis: The read cycle (ie. the base-pair position in the read).

y-axis: The rate at which the bases at the given read-cycle is clipped off.

See Also

build.plotter

Examples

  data(res,package="QoRTsExampleData");
  plotter <- build.plotter.colorByGroup(res);
  makePlot.clipping(plotter)
## Starting: Alignment Clipping Rate, by read cycle plot.
## Finished: Alignment Clipping Rate, by read cycle plot.[time: 2018-09-25 13:12:22],[elapsed: 0.32 secs]

plot of chunk unnamed-chunk-1


[Package QoRTs version 1.3.6 Index]