简体   繁体   English

如何使用 cytoscape 在有向网络图中识别或可视化节点组

[英]how to identify or visualize group of nodes in a directed network graph using cytoscape

I have a network table containing three columns as indicated below in R code我有一个包含三列的网络表,如下所示在 R 代码中

data <- data.frame(from = letters[1:20], to= LETTERS[1:20],
                   group = rep(c("normal", "middle", "high","veryhigh"),times =c(5,5,5,5)))

I did export the data to Cytoscape app for visualizing the network.我确实将数据导出到 Cytoscape 应用程序以可视化网络。 However, I tried a lot but could not able to make the following.但是,我尝试了很多,但无法进行以下操作。

  1. How can I give colors for the nodes in column "from" and column "to" and how I can differetly the nodes in the from column from to column?如何为“from”列和“to”列中的节点提供颜色,以及如何区分from列中的节点从列?
  2. How can I see the nodes of the four groups in different colors based on the group column in one network?如何根据一个网络中的列以不同颜色看到四个组的节点?

I would appricate it if some could give some tips here!如果有人可以在这里提供一些提示,我会应用它! Thank you!谢谢!

I'm afraid I don't quite understand your question.恐怕我不太明白你的问题。 Once this is imported into Cytoscape, you should be able to use the Styles panel to color your nodes using a discrete mapper.将其导入 Cytoscape 后,您应该能够使用“样式”面板使用离散映射器为节点着色。 I'm assuming you're talking about Cytoscape desktop, here, right?我假设您在谈论 Cytoscape 桌面,对吧?

-- scooter - 小型摩托车

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM