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: 'score' problem #184

Open
CuteGold0407 opened this issue Apr 10, 2024 · 0 comments
Open

KeyError: 'score' problem #184

CuteGold0407 opened this issue Apr 10, 2024 · 0 comments

Comments

@CuteGold0407
Copy link

Thank you for develpoing this amazing tool!when I run codes following the example workflow, I met the following error message:

Concatenating each sample's df together
Calculating normalized scores for samples with variants of interest
Traceback (most recent call last):
File "/home/lijp/anaconda3/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 3653, in get_loc
return self._engine.get_loc(casted_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pandas/_libs/index.pyx", line 147, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 176, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'score'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/lijp/lung-data/regtools-1.0.0/scripts/compare_junctions_hist.py", line 186, in
samples_w_variant_df['norm_score'] = samples_w_variant_df['score'] /
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/lijp/anaconda3/lib/python3.11/site-packages/pandas/core/frame.py", line 3761, in getitem
indexer = self.columns.get_loc(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lijp/anaconda3/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 3655, in get_loc
raise KeyError(key) from err
KeyError: 'score'
Traceback (most recent call last):
File "/home/lijp/lung-data/regtools-1.0.0/scripts/stats_wrapper.py", line 75, in
subprocess.run(f'python3 /home/lijp/lung-data/regtools-1.0.0/scripts/compare_junctions_hist.py -t {tag} -i {input_file} -d {input_sample_names} -v {variant_grouping_mode}', shell=True, check=True)
File "/home/lijp/anaconda3/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'python3 /home/lijp/lung-data/regtools-1.0.0/scripts/compare_junctions_hist.py -t default -i all_splicing_variants.bed -d dir.txt -v exclude' returned non-zero exit status 1.

Appreciate for any reply!

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