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: junction #98

Open
wbvguo opened this issue May 2, 2020 · 2 comments
Open

KeyError: junction #98

wbvguo opened this issue May 2, 2020 · 2 comments

Comments

@wbvguo
Copy link

wbvguo commented May 2, 2020

Hi ,I try to use outrigger(version 1.1.1, installed using conda) to calculate the PSI value from bam files. But enconter some error, here is the information about the error

Traceback (most recent call last):
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'junction'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/bin/outrigger", line 11, in
load_entry_point('outrigger==1.1.1', 'console_scripts', 'outrigger')()
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/outrigger-1.1.1-py3.7.egg/outrigger/commandline.py", line 1071, in main
cl = CommandLine(sys.argv[1:])
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/outrigger-1.1.1-py3.7.egg/outrigger/commandline.py", line 344, in init
self.args.func()
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/outrigger-1.1.1-py3.7.egg/outrigger/commandline.py", line 348, in index
index.execute()
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/outrigger-1.1.1-py3.7.egg/outrigger/commandline.py", line 757, in execute
event_maker = self.make_graph(junction_exon_triples, db)
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/outrigger-1.1.1-py3.7.egg/outrigger/commandline.py", line 663, in make_graph
event_maker = events.EventMaker(junction_exon_triples, db)
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/outrigger-1.1.1-py3.7.egg/outrigger/index/events.py", line 288, in init
junction_col].str.split(':').str.get(1)
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/pandas/core/frame.py", line 2800, in getitem
indexer = self.columns.get_loc(key)
File "/home/wbguo/apps/anaconda3/envs/outrigger-env/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2648, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'junction'

Do you have any idea how to solve this?
Thanks in advance

@pengchy
Copy link

pengchy commented Jun 21, 2020

The exact same problem was encountered with bam files produced by hisat2.

@pilakapa
Copy link

I am also having this problem. I am using sj.out files as input... has anyone found a solution to this problem?

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

3 participants