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.
plot_targets(gimap_dataset, target1, target2, reps_to_drop = "")
A special dataset structure that is originally setup using `setup_data()` and has had gi scores calculated with `calc_gi()`.
Name of the first target to be plotted e.g.
Name of the second target to be plotted e.g.
Names of replicates that should be not plotted (Optional)
A ggplot2 bar plot of the specific target's genetic interaction scores.
# \donttest{
gimap_dataset <- get_example_data("gimap") %>%
gimap_filter() %>%
gimap_annotate(cell_line = "HELA") %>%
gimap_normalize(
timepoints = "day"
) %>%
calc_gi()
#> Annotating Data
#>
Downloading: 3.4 kB
Downloading: 3.4 kB
Downloading: 3.4 kB
Downloading: 3.4 kB
#> Downloading: Achilles_common_essentials.csv
#>
|
| | 0%
|
|======================================================================| 100%
#>
|
| | 0%
|
|=============================================== | 67%
|
|======================================================================| 100%
#> Normalizing Log Fold Change
#> Calculating Genetic Interaction scores
# To plot results, pick out two targets from the gi_score table
head(dplyr::arrange(gimap_dataset$gi_score, fdr))
#> # A tibble: 6 × 7
#> pgRNA_target mean_observed_cs mean_expected_cs gi_score target_type p_val
#> <chr> <dbl> <dbl> <dbl> <chr> <dbl>
#> 1 CNOT8_CNOT7 -2.23 -0.457 -1.79 gene_gene 2.80e-9
#> 2 MED13L_MED13 -0.968 -0.269 -0.683 gene_gene 3.04e-7
#> 3 AP2A1_AP2A2 -1.57 -0.665 -0.964 gene_gene 1.51e-6
#> 4 NDEL1_NDE1 -2.53 -1.85 -0.984 gene_gene 1.48e-6
#> 5 PRKAR1B_PRKAR1A -2.53 -2.15 -0.739 gene_gene 1.63e-6
#> 6 SEC23B_SEC23A -1.40 -0.421 -0.993 gene_gene 8.85e-7
#> # ℹ 1 more variable: fdr <dbl>
# "TIAL1_TIA1" is top result so let's plot that
plot_targets(gimap_dataset, target1 = "TIAL1", target2 = "TIA1")
# }