tanghaibao / jcvi

Python library to facilitate genome assembly, annotation, and comparative genomics
BSD 2-Clause "Simplified" License
761 stars 186 forks source link

IndexError: list index out of range #579

Closed Alalakikun closed 1 month ago

Alalakikun commented 1 year ago

[08:03:45] ERROR Set text.usetex=False. Font styles may be base.py:403 inconsistent. DEBUG Load file layout3 base.py:37 DEBUG Load file Cs.bed base.py:37 DEBUG Load file Rp.bed base.py:37 [08:03:46] DEBUG Load file Mme.bed base.py:37 Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.8/dist-packages/jcvi/graphics/karyotype.py", line 447, in main() File "/usr/local/lib/python3.8/dist-packages/jcvi/graphics/karyotype.py", line 427, in main Karyotype( File "/usr/local/lib/python3.8/dist-packages/jcvi/graphics/karyotype.py", line 354, in init t = layout[i] IndexError: list index out of range

""""" How should i solve this problem. I would sincirely appreciate any help

jgroh commented 1 year ago

Hi, I'm seeing the same error message when attempting to generate the local synteny plot. Any suggestions would be appreciated!

tanghaibao commented 1 year ago

@jgroh

This is usually due to the index (in the e line, note that this is 0-indexed) exceeds the number of tracks specified in the layout. Would you mind posting the layout file if that's not the case?

Haibao

mixle18 commented 11 months ago

Hi, I'm seeing the same error message when attempting to generate the local synteny plot. Any suggestions would be appreciated!

My layout file looks like this,

y, xstart, xend, rotation, color, label, va, bed

.6, .1, .4, 0, red, Grape, top, saf_du.bed .4, .3, .6, 0, blue, Athaliana, top, saf_chinese.bed

edges

e, 0, 1, saf_chinese.saf_du.anchors.simple

etheteal commented 6 months ago

May this will help you: https://www.omicsclass.com/question/2620