plot_targets: Target bar plot for CRISPR scores

View source: R/plots-gi.R

plot_targetsR Documentation

Target bar plot for CRISPR scores

Description

This plot is for when you'd like to examine a target pair specifically – meant to be functionally equivalent to Fig 3b CRISPR scores for representative synthetic lethal paralog pairs. Data shown are the mean CRISPR score for each single KO or DKO target across three biological replicates with replicate data shown in overlaid points.

Usage

plot_targets(gimap_dataset, target1, target2, reps_to_drop = "")

Arguments

gimap_dataset

A special dataset structure that is originally setup using 'setup_data()' and has had gi scores calculated with 'calc_gi()'.

target1

Name of the first target to be plotted e.g.

target2

Name of the second target to be plotted e.g.

reps_to_drop

Names of replicates that should be not plotted (Optional)

Value

A ggplot2 bar plot of the specific target's genetic interaction scores.

Examples



gimap_dataset <- get_example_data("gimap") %>%
  gimap_filter() %>%
  gimap_annotate(cell_line = "HELA") %>%
  gimap_normalize(
    timepoints = "day"
  ) %>%
  calc_gi()

# To plot results, pick out two targets from the gi_score table
head(dplyr::arrange(gimap_dataset$gi_score, fdr))

# "TIAL1_TIA1" is top result so let's plot that
plot_targets(gimap_dataset, target1 = "TIAL1", target2 = "TIA1")


gimap documentation built on June 8, 2025, 10:13 a.m.