tr_qc_plots: Create ggplot2 figures from MultiQC results

View source: R/tr_qc_plots.R

tr_qc_plotsR Documentation

Create ggplot2 figures from MultiQC results

Description

Creates four ggplot2 figures from MultiQC results, and returns the data along with the plot objects. The plots are for FastQC (read counts and Phred scores), STAR, and HTSeq. See Details for more information.

Usage

tr_qc_plots(directory, font_size = 18, threshold_line = 1e+07, limits = NULL)

Arguments

directory

Folder containing all the data files generated by MultiQC, e.g. "multiqc_data/"

font_size

Base font size (defaults to 18)

threshold_line

Provide a number to draw a red dashed line at the indicated number of reads for FastQC read, STAR, and HTSeq plots. Defaults to 10e6; set to NULL to disable.

limits

Override the upper limit of FastQC read, STAR, and HTSeq plots. Supply a single number to give all three plots the same limit, or a vector of three values to modify each individually. Defaults to NULL, which sets automatic limits.

Details

For the Phred scores, one must open the MultiQC HTML report, and export the data for "fastqc_per_base_sequence_quality_plot" as a tab- delimited file (TSV), placing it inside the same directory as the rest.

Value

A list with elements "plot" containing the ggplot objects, and "data" containing all the underlying data

References

https://multiqc.info/

See Also

https://www.github.com/travis-m-blimkie/tRavis

Examples

if (FALSE) tr_qc_plots("multiqc_data")


travis-m-blimkie/tRavis documentation built on April 9, 2024, 11:45 p.m.