Skip to content

KeyError #111

@kotasairohith

Description

@kotasairohith

Hello, I am using the Realign of the Circle Map and I am facing the KeyError issue. Can you please help me out on this. Is there any thing I need to change, please let me know. Thanks!!

This is the detailed error

2025-09-02 11:28:00: Writting final output to disk
Traceback (most recent call last):
File "/project/Circle_Map_Test/.venv-circlemap/bin/Circle-Map", line 33, in
sys.exit(load_entry_point('Circle-Map==1.1.5', 'console_scripts', 'Circle-Map')())
File "/project/Circle_Map_Test/.venv-circlemap/lib64/python3.9/site-packages/circlemap/circle_map.py", line 1165, in main
run = circle_map()
File "/project/Circle_Map_Test/.venv-circlemap/lib64/python3.9/site-packages/circlemap/circle_map.py", line 187, in init
output = merge_final_output(self.args.sbam, self.args.output, begin, self.args.split,
File "/project/Circle_Map_Test/.venv-circlemap/lib64/python3.9/site-packages/circlemap/utils.py", line 1266, in merge_final_output
second_merging_round = unparsed_pd.sort_values(['chrom', 'start', 'end']).reset_index()
File "/project/Circle_Map_Test/.venv-circlemap/lib64/python3.9/site-packages/pandas/core/frame.py", line 7179, in sort_values
keys = [self._get_label_or_level_values(x, axis=axis) for x in by]
File "/project/Circle_Map_Test/.venv-circlemap/lib64/python3.9/site-packages/pandas/core/frame.py", line 7179, in
keys = [self._get_label_or_level_values(x, axis=axis) for x in by]
File "/project/Circle_Map_Test/.venv-circlemap/lib64/python3.9/site-packages/pandas/core/generic.py", line 1911, in _get_label_or_level_values
raise KeyError(key)
KeyError: 'chrom'

I am using the following versions
Package Version


biopython 1.77
Circle-Map 1.1.5
edlib 1.3.9.post1
llvmlite 0.43.0
numba 0.60.0
numpy 2.0.2
pandas 2.3.2
pip 21.3.1
pybedtools 0.12.0
pysam 0.23.3
python-dateutil 2.9.0.post0
pytz 2025.2
scipy 1.13.1
setuptools 53.0.0
six 1.17.0
tqdm 4.67.1
tzdata 2025.2

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