makePlot.reference {QoRTs} | R Documentation |
Plots various rates of single-base mismatches against the reference genome.
makePlot.referenceMismatch.byScore(plotter, plot.rates = TRUE, draw.decade.lines = c(FALSE,TRUE), log.y = TRUE, singleEndMode = plotter$res@singleEnd, debugMode = DEFAULTDEBUGMODE, rasterize.plotting.area = FALSE, raster.height = 1000, raster.width = 1000, r2.buffer = NULL, plot = TRUE, ...) makePlot.referenceMismatch.byBase(plotter, y.rate.per.kb = TRUE, draw.vert.dotted.lines = TRUE, debugMode = DEFAULTDEBUGMODE, singleEndMode = plotter$res@singleEnd, plot = TRUE, ...) makePlot.referenceMismatch.byBase.atScore(plotter, atScore = 41, forRead = c("BOTH","R1","R2"), plot.rates = TRUE, log.y = FALSE, singleEndMode = plotter$res@singleEnd, rasterize.plotting.area = FALSE, raster.height = 1000, raster.width = 1000, debugMode = DEFAULTDEBUGMODE, plot = TRUE,...) makePlot.referenceMismatch.byCycle(plotter, plot.rates = TRUE, log.y = TRUE, ylim = NULL, singleEndMode = plotter$res@singleEnd, debugMode = DEFAULTDEBUGMODE, rasterize.plotting.area = FALSE, raster.height = 1000, raster.width = 1000, r2.buffer = NULL, plot = TRUE, ...)
plotter |
A |
plot.rates |
A logical value indicating whether or not to plot mismatch rates or mismatch counts. |
log.y |
Logical. If TRUE, the y-axis will be log-scaled. |
draw.decade.lines |
Logical. If TRUE, draw mini tick lines at decade points on the y-axis when plotting in log-scale. |
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 |
raster.height |
Numeric integer. If |
raster.width |
Numeric integer. If |
r2.buffer |
Numeric. The desired distance between the read1/read2 sub-plots. |
y.rate.per.kb |
Logical. If TRUE, then y-axis should be labelled as the rate per kilobase. |
draw.vert.dotted.lines |
Logical. If TRUE, then draw dotted guide-lines at reasonable intervals. |
atScore |
Numeric integer. For |
forRead |
Character string. For |
ylim |
Numeric vector of length 2. This sets the y-axis limits. |
plot |
Logical. If FALSE, suppress plotting and return |
... |
Arguments to be passed to methods, such as
graphical parameters (see |
These plotting functions create plots that summarize the rate of single-base-pair reference-mismatches of reads against the reference genome. A "reference mismatch" is defined as an aligned read base that does not match the genomic base.
These reference mismatches may be caused by a number of different factors and may not necessarily indicate a serious quality issue. To begin with, many reference mismatches may be caused by real single nucleotide polymorphisms present in the subject. QoRTs produces several different plots that allow these mismatch rates to be measured in a variety of ways.
makePlot.referenceMismatch.byCycle
: Plots the overall reference mismatch rate as a function of read cycle.
makePlot.referenceMismatch.byBase
: Plots the overall reference mismatch rate for each of the 12 possible X -> Y base-pair substitutions.
makePlot.referenceMismatch.byScore
: Plots the reference mismatch rate as a function of the PHRED score.
makePlot.referenceMismatch.byBase.atScore
: Plots the reference mismatch rate for each of the 12 possible X -> Y base-pair substitutions, for the
subset of bases with PHRED score equal to atScore
.
NOTE: Creation of the reference mismatch plots requires that the QoRTs QC run be executed with additional optional parameters. The BAM file must be sorted
by coordinate, and a genome fasta file must be specified via the --genomeFA
parameter.
data(res,package="QoRTsExampleData");
plotter <- build.plotter.colorByGroup(res);