小编给大家分享一下python mcscan运行报错怎么用,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
python mcscan 运行报错
python 版本的mcscan分析最后绘制共线性绘图时报错如下:
运行命令如下:
/biosoft/miniconda/miniconda2/bin/python -m jcvi.graphics.karyotype --format=pdf --figsize=15x5 mcscan_seqid mcscan_layout
报错信息如下:
ms.boundary', 'scipy.spatial.kdtree'] 12:29:39 [__init__] CACHEDIR=/home/manager/.cache/matplotlib 12:29:39 [font_manager] Using fontManager instance from /home/manager/.cache/matplotlib/fontList.json 12:29:40 [__init__] backend agg version v2.2 12:29:40 [base] Load file `mcscan_layout` 12:29:40 [base] Load file `HVI.bed` 12:29:41 [base] Load file `OSI.bed` Traceback (most recent call last): File "/biosoft/miniconda/miniconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/biosoft/miniconda/miniconda2/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 330, in <module> main() File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 318, in main Karyotype(fig, root, seqidsfile, layoutfile) File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 269, in __init__ layout = Layout(layoutfile, generank=generank) File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 87, in __init__ self.assign_colors() File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/base.py", line 97, in assign_colors self.assign_array("color", colorset) File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/base.py", line 91, in assign_array if not getattr(x, attrib): AttributeError: 'LayoutLine' object has no attribute 'color'
这是由于输入第二个配置文件多了一个空行如下,删除空行运行成功; 所以最后不要有空行。
以上是“python mcscan运行报错怎么用”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。