Export network data with Cytoscape visualization
exportNetworkToHTML.RdConvenience function that takes nodes and edges data directly and creates both the configuration and HTML export in one step.
Usage
exportNetworkToHTML(
nodes,
edges,
filename = "network_visualization.html",
displayLabelType = "id",
nodeFontSize = 12,
...
)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 dashed 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.- 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,ComplexandAssociationedges are undirected),site,evidence_url, opened when an edge is clicked.- filename
Output HTML filename
- 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.- ...
Additional arguments passed to exportCytoscapeToHTML()