Description Usage Arguments Value Slots Examples
Performs a Limma differential expression on the nodes and computes the colors of the nodes depending on it_ Significant up- and down-regulated nodes are depicted with the selected color, with a gradient towards the non-significant color depending on the value of the p-value. Smaller p-values give rise to purer colors than higher p-values.
1 2 3 |
results |
Object of results as provided by the |
metaginfo |
Object of pathways_ |
group |
Character indicating the column in which the group variable is
stored, in case the object provided to |
expdes |
String, either the comparison to be performed or the label of the first group to be compared. |
g2 |
String, label of the second group to be compared. Only necessary in case expdes is the name of the first group, not the comparison. |
group_by |
How to group the subpathways to be visualized. By default they are grouped by the pathway to which they belong. Available groupings include "uniprot", to group subpathways by their annotated Uniprot functions, "GO", to group subpathways by their annotated GO terms, and "genes", to group subpathways by the genes they include. Default is set to "pathway". |
colors |
Either a character vector with 3 colors (indicating, in this order, down-regulation, non-significance and up-regulation colors) or a key name indicating the color scheme to be used. Options are: |
conf |
Level of significance of the comparison for the adjusted p-value. |
adjust |
Boolean, whether to adjust the p.value from the comparison. Default is TRUE. |
List of color vectors, named by the pathways to which they belong. The color vectors represent the differential expression of the nodes in each pathway.
classic
ColorBrewer blue, white and colorBrewer red.
hipathia
Hipathia predefined color scheme:
Green, white and orange.
By default classic
color scheme is applied.
1 2 3 4 5 6 | data(results)
data(brca)
pathways_list <- c("hsa03320", "hsa04012")
pathways <- load_pathways(species = "hsa", pathways_list)
colors_de <- node_color_per_de(results, pathways, "group", "Tumor - Normal")
colors_de <- node_color_per_de(results, pathways, "group", "Tumor", "Normal")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.