huwenboshi/hess

keyerror:local_hsqg_manhattan.py

Opened this issue · 0 comments

"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!