你文件里面是不是多了这个,你把它删除试试
$ python2.7 -m jcvi.graphics.karyotype --format=pdf --figsize=15x5 hv_at_mcscan_seqid hv_at_mcscan_layout
17:22:57 [base] Load file `hv_at_mcscan_layout`
17:22:57 [base] Load file `hv.bed`
17:22:58 [base] Load file `at.bed`
Traceback (most recent call last):
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 350, in <module>
main()
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 338, in main
plot_circles=(not opts.nocircles))
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 281, in __init__
layout = Layout(layoutfile, generank=generank)
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 81, in __init__
blocks = self.parse_blocks(fn, i)
File "/home/chenxh/miniconda3/envs/jcvi/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 90, in parse_blocks
order = self[i].order
AttributeError: 'LayoutLine' object has no attribute 'order'
(jcvi)