Skip to content

KeyError: 'score' problem #184

Description

@CuteGold0407

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions