Python 的 Cytoscape

问题描述

我有一个数据框,我想用它来创建一个使用 Cytoscape 进行可视化的网络。数据框包含节点、边和权重列。

Nodes     Edges      Weights
1          3           0.2
2          5           0.1
3          2           0.4
4          2           0.1
5          1           0.1

我主要使用教程来导入正确的库,但我还没有导入我的文件。

import pandas as pd
import dash
import dash_cytoscape as cyto
import dash_html_components as html


app=dash.Dash(__name__)
app.layout=html.Div([
        cyto.Cytoscape(
        id='core_19_cytoscape',layout={'name': 'preset'},# missing fields,including elements

    )
])

据我所知,元素将包含数据,在我的例子中是外部文件(csv 格式)。 如果您能告诉我如何导入外部文件,我将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...