makePlot.readLengthDist {QoRTs}R Documentation

Plot the distribution of read lengths.

Description

Plots the distribution of read lengths. Only useful for data with variable trimming (which is generally not recommended at least for RNA-Seq data).

Usage

makePlot.readLengthDist(plotter,
                        plot.rates = TRUE, 
                        plot.means = TRUE, 
                        plot.medians = NULL,
                        include.full.length = FALSE, 
                        cumulative = TRUE,
                        singleEndMode,
                        rasterize.plotting.area = FALSE, 
                        raster.height = 1000, 
                        raster.width = 1000,
                        debugMode,
                        r2.buffer,
                        plot = TRUE,
                        ...)

Arguments

plotter

A QoRT_Plotter reference object. See build.plotter.

plot.rates

A logical value indicating whether or not the X-axis should be the raw number of nucleotides that are G/C, vs the rate G/C.

plot.means

A logical value indicating whether or not to plot the mean average GC content for each bam file at the bottom of the plot.

plot.medians

A logical value indicating whether or not to plot the median average GC content for each bam file at the bottom of the plot. Overrides plot.means.

include.full.length

Logical. If FALSE, omit the full-length read length from the x-axis of the plot.

cumulative

Logical. If TRUE, plot shows cumulative rates.

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.

debugMode

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

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.

r2.buffer

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

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: Read Length

y-axis: Percentage of reads with length equal to the given length. If cumulative == TRUE, then it is the percentage of reads with length less than or equal to the given length.

See Also

build.plotter

Examples

  data(res,package="QoRTsExampleData");
  plotter <- build.plotter.colorByGroup(res);
  makePlot.readLengthDist(plotter)
## Starting: Read Length Distribution plot.
## Finished: Read Length Distribution plot.[time: 2018-09-25 13:13:12],[elapsed: 0.12 secs]

plot of chunk unnamed-chunk-1


[Package QoRTs version 1.3.6 Index]