plot_condition_residuals: Plot guide-level residuals for all gene pairs.

View source: R/plot.R

plot_condition_residualsR Documentation

Plot guide-level residuals for all gene pairs.

Description

Plots replicate comparisons for all replicates in a list of screens and outputs plots to a given folder. Works for data returned from call_condition_hits.

Usage

plot_condition_residuals(
  scores,
  residuals,
  control_name,
  condition_name,
  output_folder,
  neg_type = "Negative",
  pos_type = "Positive",
  plot_type = "png"
)

Arguments

scores

Dataframe of scores returned from call_condition_hits.

residuals

Residuals returned with the return_residuals argument set to true from call_condition_hits.

control_name

Name of control passed to call_condition_hits.

condition_name

Name of condition passed to call_condition_hits.

output_folder

Folder to output plots to.

neg_type

Label for significant effects with a negative differential effect passed to call_condition_hits (default "Negative").

pos_type

Label for significant effects with a positive differential effect passed to call_condition_hits (default "Positive").

plot_type

Type of plot to output, one of "png" or "pdf" (default "png").


HenryWard/orthrus documentation built on June 2, 2023, 10:28 p.m.