Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyerror:local_hsqg_manhattan.py #25

Open
umbrellaling opened this issue Oct 26, 2023 · 0 comments
Open

keyerror:local_hsqg_manhattan.py #25

umbrellaling opened this issue Oct 26, 2023 · 0 comments

Comments

@umbrellaling
Copy link

"KeyError: 'chr'"
[code]
python /home/ygl/HESS0.5.3/misc/2 \

--local-hsqg-est step2_trait1.txt
--out CD_local_hsqg.pdf
--trait-name CD
[error]
Traceback (most recent call last):
File "/home/ygl/HESS0.5.3/misc/2", line 100, in
main()
File "/home/ygl/HESS0.5.3/misc/2", line 34, in main
even_chr_idx = index[np.where(hsq['chr']%2 == 0)]
File "/home/ygl/anaconda3/envs/hess/lib/python2.7/site-packages/pandas/core/frame.py", line 2927, in getitem
indexer = self.columns.get_loc(key)
File "/home/ygl/anaconda3/envs/hess/lib/python2.7/site-packages/pandas/core/indexes/base.py", line 2659, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1601, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1608, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'chr'
I have no idea why this error emerged and how to solve it. hope someone can help me ,thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant