im_netplot: Creates and plot an igraph network from dataframe

Description Usage Arguments Details Value See Also Examples

View source: R/im_netplot.R

Description

Creates and plot an igraph network from dataframe

Usage

1
im_netplot(df, icp_gene, cohort, Immune_phenotype, cutoff, seed)

Arguments

df

A dataframe as outputted by im_syng_tcga or im_syng

icp_gene

An optional character vector of immune checkpoints for color coding vertex. default is icp_gene_list

cohort

An optional character string indicating a single TCGA disease.

Immune_phenotype

a character string indicating name of an immune feature.

cutoff

A numeric indicating quantile cut-off for absolute values of synergy scores.

seed

A single value, interpreted as an integer, or NULL (see set.seed for details).

Details

im_netplot uses igraph to construct and plot network from synergy score data frame. Immune-checkpoints/onco-genes are depicted as black/white vertices, and positive/negative synergistic interactions are depicted as red/blue edges. Thickness of an edge is determined by the absolute value of the score, and the size of each vertex is determined by its degree. Edges with absolute values lower that the cut-off will be removed from the graph.

cutoff=0 does not remove any edges. cutoff=1 removes all edges. Default is 0.95, which keeps scores with their absolute value higher than 0.95 quantile. Colored groups are constructed based on edge-between-ness membership. For more information see edge.betweenness.community seed is an integer that is the starting point from which random numbers are generated in igraph. Seed value is used for the reproducibility of plot layout. different seed numbers will generate different

Value

A plotted igraph object showing network of synergistic (red) and antagonistic (blue) associations.

See Also

igraph

Examples

1
2
df <- im_syng_tcga(onco_gene = icp_gene_list,icp_gene = icp_gene_list,cohort = "acc")
im_netplot(df, Immune_phenotype = "EMTscore", seed = 1234)

Bozorgui/imogene documentation built on Feb. 21, 2022, 11:57 a.m.