plot_read_quality: Plot the quality of reads in a fastq file

View source: R/rsearch_wrappers.R

plot_read_qualityR Documentation

Plot the quality of reads in a fastq file

Description

lifecycle-experimental

Wrapper of Rsearch::plot_read_quality(). Plot the per-base quality score distribution of the reads of a fastq file, either as raw Phred scores or converted to expected-error (EE) rates.

Usage

plot_read_quality(
  fastq_input,
  use_ee_rate = FALSE,
  plot_title = TRUE,
  alpha = 0.5
)

Arguments

fastq_input

(required) Path to a fastq file (optionally gzipped).

use_ee_rate

(logical, default FALSE) Convert quality scores to expected error rates.

plot_title

(logical, default TRUE) Add a title to the plot.

alpha

(numeric, default 0.5) Transparency of the quality lines.

Value

A ggplot2-based plot object.

Author(s)

Adrien Taudière

See Also

Rsearch::plot_read_quality(), plot_ee_rate_dist()

Examples


plot_read_quality(
  system.file("extdata", "ex.fastq", package = "MiscMetabar")
)


MiscMetabar documentation built on Nov. 16, 2026, 5:06 p.m.