Skip to content

Trouble converting exported .cs file #124

Description

@SI18

Hello! I have an issue with using csparc2star. I enter the following commands:

conda activate pyem

(pyem) csparc2star.py --boxsize 150 --copy-micrograph-coordinates path J26_particles_exported.cs J26_particles_exported.star

Traceback (most recent call last):
File "/home/sofia.ievleva/miniconda3/bin/csparc2star.py", line 33, in
sys.exit(load_entry_point('pyem', 'console_scripts', 'csparc2star.py')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sofia.ievleva/pyem/pyem/cli/csparc2star.py", line 185, in main
sys.exit(main(parser.parse_args()))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sofia.ievleva/pyem/pyem/cli/csparc2star.py", line 122, in main
df = star.smart_merge(df, coord_star, fields=fields, key=key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sofia.ievleva/pyem/pyem/star/star.py", line 209, in smart_merge
s2 = s2.set_index(key, drop=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sofia.ievleva/miniconda3/lib/python3.12/site-packages/pandas/core/frame.py", line 6122, in set_index
raise KeyError(f"None of {missing} are in the columns")
KeyError: 'None of [None] are in the columns'

I have downloaded everything including miniforge3 in hopes that it can help but this error still occurs. What can be done to fix this error? 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