plot_screen: Plot genetic screen results

View source: R/plot_screen.R

plot_screenR Documentation

Plot genetic screen results

Description

Generates a ranked scatter plot of genetic interaction scores from GINI_screen outputs

Usage

plot_screen(
  result_df = NULL,
  label_genes = FALSE,
  gene_list = NULL,
  label_n = NULL
)

Arguments

result_df

data frame, A data frame output from GINI_screen(), Default: NULL

label_genes

logical, TRUE to trigger gene name labeling, Default: FALSE

gene_list

characters, A vector of Hugo Symbols to plot. labels_genes must be TRUE to plot them, Default: NULL

label_n

integer, Number of genes from either end to label, Default: 1

Value

A plot generated by ggplot2, additional ggplot layers can be applied directly using +

Examples

gretta_data_dir <- './GRETTA_example/'
gretta_output_dir <- './GRETTA_example_output/'

if(!dir.exists(gretta_data_dir)){
  download_example_data(".")
}

load(paste0(gretta_data_dir,"/sample_22Q2_ARID1A_KO_screen.rda"), envir = environment())

plot_screen(screen_results, label_genes = TRUE, "ARID1B")


ytakemon/GINIR documentation built on Feb. 27, 2024, 1:33 p.m.