Skip to content

Commit

Permalink
fix small bug with network visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Wu committed Jul 2, 2024
1 parent f6a1029 commit 48a178c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/visualizeSubnetwork.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ visualizeSubnetwork = function(nodes, edges) {
NODE_LABEL_FONT_SIZE=6,
NODE_LABEL_POSITION="center",
EDGE_TARGET_ARROW_SHAPE="Arrow")
VISUAL_STYLE_MAPPINGS = list(
mapVisualProperty('Node Label','uniprot_id','p')
)
VISUAL_STYLE_NAME = "MSstats-Indra Visual Style"

createNetworkFromDataFrames(nodes, edges)

VISUAL_STYLE_MAPPINGS = list(
mapVisualProperty('Node Label','uniprot_id','p')
)
createVisualStyle(VISUAL_STYLE_NAME, DEFAULT_VISUAL_STYLE, VISUAL_STYLE_MAPPINGS)
setVisualStyle(VISUAL_STYLE_NAME)
}

0 comments on commit 48a178c

Please sign in to comment.