knitr::opts_chunk$set(collapse = TRUE,comment = "#>")
knitr::opts_chunk$set(fig.width = 4, fig.height = 4) 
options(tibble.print_min = 4L, tibble.print_max = 4L)
library(imogimap)

imogimap (Immuno-Oncology gene interaction maps)

Introduction

imogimap calculates statistical Combined action scores based on gene expression profiles in multi-sample data to quantify combinatorial effects of oncogenes and immune checkpoints on immune related phenotype.

Example use of TCGA data

imogimap uses curatedTCGAData API functions to access RNASeq2GeneNorm expressions.

As an example, let us explore TGFb cytokines combinatorial interactions with immune checkpoints and their effects on all immune phenotypes/features as listed in TCGA_immune_features_list. First we define gene lists using Hugo IDs. a pre-defined list of immune checkpoints, icp_gene_list, is included as default for immune checkpoints:

my_onco <- c("TGFB1")
my_icp <- c("CD27", "CD276")

Then we define disease lists using any of the TCGA abbreviated disease names as listed in TCGA_disease_list:

my_cohort <- c("luad")

Now we use im_syng_tcga function to get Combined action scores. The rest of parameters are optional, with default values as below:

my_syng_df <-  im_syng_tcga(
  onco_gene  = my_onco,
  icp_gene = my_icp, 
  add_receptor_ligand=F,
  cohort = my_cohort, 
  method = "independence",
  sensitivity = FALSE,
  specificity = FALSE)

We have the option to search for genes that interact with either of the onco/icp genes using CellphoneDB public receptor-ligand database. add_receptor_ligand=T adds the known interacting genes to their corresponding original gene lists.

We have the option to choose one of the two available Combined action scoring methods and determine whether we want to include specificity and robustness analysis. Specificity and robustness measures are calculated by random bootstrapping, and we can increase or decrease the number of bootstrapping iterations, N_iteration, to gain more accuracy or save time.

Other optional inputs of im_syng_tcga are: sample_list that allow us to define a curated set of TCGA samples, and feature that allow us to provide additional immune phenotypes/features.

The output contains Combined action scores for all pairs of genes, as well as specificity p.values and robustness variances that are used to identify noteworthy interactions on all the immune features listed in TCGA_immune_features_list.

Combined action outputs can be visualized as an igraph graphical network model for each specific phenotype using im_netplot function and saved as an image:

p <- im_netplot(df = my_syng_df,
                Immune_phenotype = "IFNGscore",
                cutoff = 0.35,
                cohort = "luad" ,
                icp_gene = my_icp,
                seed = 123)

im_netplot function directly uses the output of im_syng_tcga function.A unique immune feature from the output needs to be specified. We have the option to specify a sub-group of our disease cohorts, or make a single network for all the cohorts in the output. We are also able to change the cutoff value for Combined action scores. Combined action scores with their absolute value below the cut-off won't be displayed. We may want to input our immune checkpoint list if it differs from imogimap's default icp_gene_list. im_netplot uses this list to color code onco-genes and immune checkpoints differently. Finally by changing seed we can change the plots layout and make it reproducible.

imogimap also visualizes data that has been used in calculation of an individual Combined action scores. To do this we can use im_boxplot_tcga and im_boxplot_tcga_plot functions:

results <- im_boxplot_tcga(onco_gene = "TGFB1", icp_gene = "CD27", cohort = "luad", Immune_phenotype = "IFNGscore")
im_boxplot_tcga_plot(results)
results <- im_boxplot_tcga(onco_gene = "TGFB1", icp_gene = "CD276", cohort = "luad", Immune_phenotype = "IFNGscore")
im_boxplot_tcga_plot(results)

im_boxplot_tcga, accepts single and unique values for each of the input parameters, with onco_gene and icp_gene being gene's Hugo ID,and cohort any of the TCGa abbreviated disease names, and Immune_Feature any of the features in TCGA_immune_features_list. The result is a boxplot of immune feature values, stratified based on gene pair expression values.

Session Info

sessionInfo()


korkutlab/imogimap documentation built on March 17, 2023, 8:22 a.m.