as.goi: as gene of interest

View source: R/misc.R

as.goiR Documentation

as gene of interest

Description

quickly format the gene so that it can be used by various overlay functions. This functional will create a named data.frame with column 'gene', 'col_significant' and 'col_other', that can be directly inputted into plot_overlay.

Usage

as.goi(
  genes,
  col_significant = "cyan",
  col_other = "grey",
  shape = 21,
  dataset = "GOI"
)

Arguments

genes

string indicating the bait.

col_significant

color of significant interactor.

col_other

color of non-significant interactor.

shape

numeric. 21 is default for circle.

dataset

used internally in genoppi to plot multiple datasets.

See Also

Other misc: %nin%(), as.bait(), bold(), catf(), color_distinct(), color_gradient(), enumerate_replicate_combinations(), get_gg_legend(), hline(), italics(), lun(), null_omit(), shape_to_symbol(), symbol_to_shape(), vline()

Examples

## Not run: 
# overlay the bait
example_data %>%
 calc_mod_ttest() %>%
 id_significant_proteins() %>%
 plot_volcano_basic() %>%
 plot_overlay(as.goi(c('BCL2', 'FUS', 'TRIM28')))

## End(Not run)

lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.