PlotMismatchPositionForSample: Diagnostic plot for mismatch position for columns (by sample)

View source: R/diagnostics.R

PlotMismatchPositionForSampleR Documentation

Diagnostic plot for mismatch position for columns (by sample)

Description

This belongs to the first diagnostic plots (raw mismatches) generated by GRAND3.

Usage

PlotMismatchPositionForSample(
  data,
  sample,
  orientation = NULL,
  category = NULL,
  max.pos = 2500
)

Arguments

data

a grandR object

sample

a sample name

orientation

restrict to either Sense or Antisense; can be NULL

category

restrict to a specific category (see GetDiagnosticParameters); can be NULL

max.pos

remove everything behind this position

Details

For all positions along the reads (x axis; potentially paired end, shown left and right), show the percentage of all mismatch types. The panel in column T and row C shows T-to-C mismatches. Positions outside of shaded areas are clipped. Uncorrected and Retained means before and after correcting multiply sequenced bases. Sense/Antisense means reads (first read for paired end) that are (based on the annotation) oriented in sense or antisense direction to a gene (i.e. this is only relevant for sequencing protocols that do not preserve strand information).

Value

a list with a ggplot object, a description, and the desired size for the plot


grandR documentation built on April 4, 2025, 2:27 a.m.