Skip to content

AttributeError: 'LayoutLine' object has no attribute 'sizes' #771

@Dengdengdeng-lab

Description

@Dengdengdeng-lab

Hello, when I was using the software, I submitted the command: python -m jcvi.graphics.karyotype seqids layout. Then I encountered an error. The specific error information is as follows:

[04/22/25 19:16:07] DEBUG    Load file `layout`                       base.py:36
                    DEBUG    Load file `A.bed`                        base.py:36
[04/22/25 19:16:08] DEBUG    Load file `B.bed`                        base.py:36
Traceback (most recent call last):
  File "miniconda3/envs/jcvi_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File /miniconda3/envs/jcvi_env/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "envs/jcvi_env/lib/python3.10/site-packages/jcvi/graphics/karyotype.py", line XX, in <module>
    main(sys.argv[1:])
  File3/envs/jcvi_env/lib/python3.10/site-packages/jcvi/graphics/karyotype.py", line XX, in main
    Karyotype(
  File "miniconda3/envs/jcvi_env/lib/python3.10/site-packages/jcvi/graphics/karyotype.py", line XX, in __init__
    tr = Track(root, lo, gap=gap, height=height, lw=lw, draw=False)
  File "miniconda3/envs/jcvi_env/lib/python3.10/site-packages/jcvi/graphics/karyotype.py", line XX, in __init__
    self.sizes = sizes = t.sizes
AttributeError: 'LayoutLine' object has no attribute 'sizes'

I can't solve this problem on my own and I'm asking for help. Also, when I tried to generate the "sizes" file, I couldn't do it. The prompt said that I already had the file, but I actually don't have it. I would like to request your help. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions