Python中文
首页
教程
问答
标签
搜索
登录
注册
使用python将newick转换为graphml
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我想把一棵树从newick转换成graphml格式,我可以用cytoscape打开它。在</p> <p>所以,我有一份文件“小纽克“包含:</p> <pre><code>((raccoon:1,bear:6):0.8,((sea_lion:11.9, seal:12):7,((monkey:100,cat:47):20, weasel:18):2):3,dog:25); </code></pre> <p>到目前为止,我是这样做的(python3.6.5 |Python):</p> ^{pr2}$ <p><a href="https://i.stack.imgur.com/bF2SP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bF2SP.png" alt="image1"/></a></p> <p>Clade有一个问题,我可以使用以下代码修复:</p> ^{3}$ <p>给我一些看起来不错的东西:</p> <p><a href="https://i.stack.imgur.com/AiGjT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AiGjT.png" alt="image2"/></a></p> <p>我的问题是:</p> <ul> <li><p>这是个好办法吗?在我看来,这个函数不处理内部节点名</p></li> <li><p>如果用足够长的字符串替换一个节点名,则命令<em>Phylo.to\u网络(树)</em>。如何避免呢?</p></li> </ul> <p>示例:用“测试字符串”替换“狗”,该字符串会产生一些问题</p> <p><a href="https://i.stack.imgur.com/r05V5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r05V5.png" alt="image3"/></a></p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>经过一番研究,我实际上找到了一个可行的解决方案。 我决定在这里为您提供链接,亲爱的读者: <a href="https://github.com/GildasLepennetier/newick_to_graphml" rel="nofollow noreferrer">going to github</a></p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
python语法错误(如果不在Z中,则在X中表示s)
10 回答
Python语法错误(无效)概率
1 回答
python语法错误*带有可选参数的args
7 回答
python语法错误2.5版有什么办法解决吗?
1 回答
Python语法错误2.7.4
8 回答
python语法错误30/09/2013
10 回答
Python语法错误E001
9 回答
Python语法错误not()op
7 回答
python语法错误outpu
6 回答
Python语法错误print len()
6 回答
python语法错误w3
4 回答
Python语法错误不是caugh
4 回答
python语法错误及yt-packag的使用
10 回答
python语法错误可以查出来!!瓦里亚布
2 回答
Python语法错误可能是缩进?
1 回答
Python语法错误和缩进
2 回答
Python语法错误在while循环中生成随机numb
8 回答
Python语法错误在哪里?
3 回答
python语法错误在尝试导入包时,但仅在远程运行时
8 回答
Python语法错误在电子邮件地址提取脚本中
8 回答