Skip to contents

Convenience 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 id column. Optional columns: logFC (numeric), hgncName (character), Site (character, underscore-separated PTM site list).

edges

Data frame with columns source, target, interaction. Optional: site, evidenceLink.

filename

Output HTML filename

displayLabelType

"id" (default) or "hgncName" – controls which column is used as the visible node label.

nodeFontSize

Font size (px) for node labels. Default 12.

...

Additional arguments passed to exportCytoscapeToHTML()

Value

Invisibly returns the file path of the created HTML file