I'm having trouble running CLEAR. I'm not an experienced python/pandas user, but it seems to have something to do with setting the N parameter. I've included the error below.
Traceback (most recent call last):
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/indexes/base.py", line 2897, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'N'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../CLEAR/CLEAR.py", line 42, in
CD=SynchronizedFile.load(options.syncFile)
File "../CLEAR/Libs/Utils.py", line 117, in load
data=data.apply(SynchronizedFile.processSyncFileLine,axis=1)
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/frame.py", line 6928, in apply
return op.get_result()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/apply.py", line 186, in get_result
return self.apply_standard()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/apply.py", line 292, in apply_standard
self.apply_series_generator()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/apply.py", line 321, in apply_series_generator
results[i] = self.f(v)
File "../CLEAR/Libs/Utils.py", line 105, in processSyncFileLine
return pd.concat([z[ref].astype(int).rename('C'), (z.sum(1)).rename('D')], axis=1).stack()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/frame.py", line 2995, in getitem
indexer = self.columns.get_loc(key)
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/indexes/base.py", line 2899, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: ('N', 'occurred at index (I, 60, N)')
I'm having trouble running CLEAR. I'm not an experienced python/pandas user, but it seems to have something to do with setting the N parameter. I've included the error below.
Input:
python .../CLEAR/CLEAR.py --sync .../sample.sync --plot --out=$clear_out"/sample.clear"
Error:
Traceback (most recent call last): File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/indexes/base.py", line 2897, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'N'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "../CLEAR/CLEAR.py", line 42, in
CD=SynchronizedFile.load(options.syncFile)
File "../CLEAR/Libs/Utils.py", line 117, in load
data=data.apply(SynchronizedFile.processSyncFileLine,axis=1)
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/frame.py", line 6928, in apply
return op.get_result()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/apply.py", line 186, in get_result
return self.apply_standard()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/apply.py", line 292, in apply_standard
self.apply_series_generator()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/apply.py", line 321, in apply_series_generator
results[i] = self.f(v)
File "../CLEAR/Libs/Utils.py", line 105, in processSyncFileLine
return pd.concat([z[ref].astype(int).rename('C'), (z.sum(1)).rename('D')], axis=1).stack()
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/frame.py", line 2995, in getitem
indexer = self.columns.get_loc(key)
File "/software/2020/software/pandas/0.25.3-foss-2018b-python-3.6.6/lib/python3.6/site-packages/pandas-0.25.3-py3.6-linux-x86_64.egg/pandas/core/indexes/base.py", line 2899, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: ('N', 'occurred at index (I, 60, N)')