plot_coess: Plot coessential genes

View source: R/plot_coess.R

plot_coessR Documentation

Plot coessential genes

Description

Generates a ranked scatter plot of cossential genes from annotate outputs

Usage

plot_coess(
  result_df = NULL,
  inflection_df = NULL,
  label_genes = FALSE,
  label_n = NULL
)

Arguments

result_df

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

inflection_df

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

label_genes

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

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_coessential_result.rda'), 
envir = environment())
load(paste0(
gretta_data_dir,'/sample_22Q2_ARID1A_coessential_inflection.rda'), 
envir = environment())

plot_coess(
result_df = coess_df, 
inflection_df = coess_inflection_df, 
label_genes = FALSE)


ytakemon/GINIR documentation built on Dec. 17, 2024, 7:39 a.m.