您好,登錄后才能下訂單哦!
小編給大家分享一下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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。