plotQualityProfile: Plot quality profile of a fastq file.

Description Usage Arguments Details Value Examples

View source: R/plot-methods.R

Description

This function plots a visual summary of the distribution of quality scores as a function of sequence position for the input fastq file(s).

Usage

1
plotQualityProfile(fl, n = 5e+05)

Arguments

fl

(Required). character. File path(s) to fastq or fastq.gz file(s).

n

(Optional). Default 1,000,000. The number of records to sample from the fastq file.

Details

The distribution of quality scores at each position is shown as a grey-scale heat map, with dark colors corresponding to higher frequency. The plotted lines show positional summary statistics: green is the mean, orange is the median, and the dashed orange lines are the 25th and 75th quantiles.

Value

A ggplot2 object. Will be rendered to default device if printed, or can be stored and further modified. See ggsave for additional options.

Examples

1
plotQualityProfile(system.file("extdata", "sam1F.fastq.gz", package="dada2"))

dada2 documentation built on May 20, 2017, 9:15 p.m.

Search within the dada2 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.