Skip to content

order_to_agp size = sizes[ctg] KeyError: 'ptg000337l' #780

@jd3234

Description

@jd3234

Hi developers,

like some others on this issue board I am encountering the following error when running this command

python3 -m jcvi.assembly.allmaps path --cpus=16 --weightsfile=make_weights_file/maps_weights.txt allmaps/contigs-filt-allmaps.bed contigs.fasta                   --noplot --font=Helvetica


Traceback (most recent call last):
  File "/opt/micromamba/envs/tool/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/micromamba/envs/tool/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/opt/micromamba/envs/tool/lib/python3.10/site-packages/jcvi/assembly/allmaps.py", line 2032, in <module>
    main()
  File "/opt/micromamba/envs/tool/lib/python3.10/site-packages/jcvi/assembly/allmaps.py", line 853, in main
    p.dispatch(globals())
  File "/opt/micromamba/envs/tool/lib/python3.10/site-packages/jcvi/apps/base.py", line 140, in dispatch
    globals[action](sys.argv[2:])
  File "/opt/micromamba/envs/tool/lib/python3.10/site-packages/jcvi/assembly/allmaps.py", line 1609, in path
    order_to_agp(s.object, s.tour, sizes, fwagp, gapsize=gapsize, evidence="map")
  File "/opt/micromamba/envs/tool/lib/python3.10/site-packages/jcvi/formats/agp.py", line 797, in order_to_agp
    size = sizes[ctg]
KeyError: 'ptg000337l'

I checked the input fasta if ptg000337l is in there and I can confirm it is there. Could you point please point me into a direction to solve this?

I used the latest version installed via conda.

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