View source: R/subset_metaanalysis.R
plot_gene_coDE_newtork | R Documentation |
Plot a network where each node is a gene and each edge represent an event of co-differential expression.
plot_gene_coDE_newtork(
dataset = NULL,
genes = NULL,
top = NULL,
code_matrix = NULL,
gene_stats_matrix = NULL,
node_color = c("mean", "median", "pseudotscore"),
node.names = TRUE
)
dataset |
list of 3 lists, the first with gene IDs (called |
genes |
it is taken into consideration only when |
top |
it is taken into consideration only when |
code_matrix |
dataframe of co-DE events only used when |
gene_stats_matrix |
dataframe of statistics only used when |
node_color |
color nodes based on the genes' mean ( |
node.names |
whether to print ( |
plot a network where each node is a gene (node size corresponds to the number of comparisons in which a given gene is found co-DE) and each edge represent an event of co-differential expression (edge thickeness corresponds to the number of comparison where the genes are found co-DE). Nodes are colored based on log2FC (median or mean across comparisons) or pseudo-t-score (for more information check documentation for find_gene_statistics
). Also returns the co-DE graph object produced by the igraph package.
# create a list of lists were only the first 500 most significant genes with adjusted p-value < 0.05 and fold change >1.5 or < -1.5 are included
data(list_array) #load data
list_array.05_fc1.5_max500 <- subset_metanalysis(dataset=list_array, adjpval = 0.05, abslog2FC = log2(1.5), max_n_genes = 500)
#plot the co-DE network for the most frequent 10 genes and color the nodes based on their mean log2FC
plot_gene_coDE_newtork(dataset=list_array.05_fc1.5_max500, top = 10, node_color="mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.