Preview network in browser
previewNetworkInBrowser.RdGenerates a temporary HTML file for the network visualization and opens it in the default web browser for quick preview.
Arguments
- nodes
Data frame with at minimum an
idcolumn. Optional columns:logFC(numeric),entity_name(character; may be semicolon-joined for multi-grounded rows),entity_id(character),site(character, underscore-separated PTM site list), and the node status columns ofvalidate_network():entity_typesets the node shape (e.g. a hexagon for"metabolite");measured = FALSEdraws a node with no fill and a grey border ("not in input data");included_in_query = FALSEfades it. A node with anNAlogFChas no fill. A protein withsiterows takes its colour from its row with nosite; without one, only its sites are coloured. Missing status columns count asTRUE.node_rolesets the border: solid when"passed_cutoffs"is one of the node's";"-joined roles, dashed otherwise (e.g."one_condition_missing"or"user_added"). PTM site nodes take the border from their own row's role. A protein with onlysiterows has no role of its own and draws dashed. A missing column draws every border solid, and anNArole draws a solid border.- edges
Data frame with columns
source,target,interaction. Optional:directed(an edge withFALSEhas no arrow and is drawn once for both directions; without the column,BindingandAssociationedges are undirected),site,evidence_url, opened when an edge is clicked.- displayLabelType
"id"(default) or"entity_name": which column is used as the visible node label."entityName"is deprecated and is treated as"entity_name"with a warning.- nodeFontSize
Font size (px) for node labels. Default
12.
Examples
if (FALSE) { # \dontrun{
nodes <- data.frame(id = c("A", "B", "C"))
edges <- data.frame(source = c("A", "B"), target = c("B", "C"))
previewNetworkInBrowser(nodes, edges)
} # }