plot_hisat2_vs_salmon: Plot HISAT2 vs. Salmon mapping rates

View source: R/rnaseq_workflow_qc.R

plot_hisat2_vs_salmonR Documentation

Plot HISAT2 vs. Salmon mapping rates

Description

Create a HISAT2 vs Salmon mapping rate scatterplot. Only applicable for paired-end sequencing data.

Usage

plot_hisat2_vs_salmon(
  hisat_data,
  salmon_data,
  point_size = 4,
  fill = "red4",
  alpha = 0.75,
  ids = NULL,
  invert = F
)

Arguments

hisat_data

A data frame of HISAT2 mapping data in the same format as hisat2 returned by load_paired_end_qc_data.

salmon_data

A data frame of Salmon mapping data in the same format as hisat2 returned by load_paired_end_qc_data.

point_size

A numeric. The size for data points.

fill

A string. The fill color for data points.

alpha

A numeric. The alpha level for data points.

ids

A vector of rownames for subsetting hisat_data and salmon_data for plotting.

invert

A logical. Should ids be used for excluding rows from plotting instead?

Details

Creates a scatterplot comparing mapping rates between HISAT2 and Salmon for samples that have matchable IDs between data from the two tools. IDs are formatted for matching based on the assumption that sample names are equivalent up until the first | delimiter (if any) in the name.

Value

A ggplot object.

See Also

load_paired_end_qc_data


bryancquach/omixjutsu documentation built on Jan. 29, 2023, 3:47 p.m.