Skip to content

Commit

Permalink
fix bug related to node ids being integers instead of characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Wu committed Jul 2, 2024
1 parent 55138f0 commit 222dc48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/networkPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
fetchIndraData = function(input, pvalue_cutoff = 0.05, stmt_types = c("Complex")) {
input = filter(input, adj.pvalue < pvalue_cutoff)
input = filter(input, is.na(issue))
hgnc_ids = input$HgncId
hgnc_ids = as.character(input$HgncId)
uniprot_ids = input$Protein
gene_id_map = hashmap()
gene_id_map[input$HgncId] = input$HgncName
Expand Down Expand Up @@ -80,7 +80,6 @@ visualizeNetworks = function(nodes, edges) {
c("Arrow","Arrow","Arrow")
)
nodeLabels = mapVisualProperty('Node Label','uniprot_id','p')
edgeWidth = mapVisualProperty('Edge Width','evidenceCount','p')
createVisualStyle("Y",
list(
NODE_FILL_COLOR="lightblue",
Expand All @@ -90,7 +89,6 @@ visualizeNetworks = function(nodes, edges) {
NODE_LABEL_POSITION="center"),
list(
nodeLabels,
edgeWidth,
arrowShapes
))
setVisualStyle("Y")
Expand Down

0 comments on commit 222dc48

Please sign in to comment.