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 in locus_selection.py #22

Open
ThibauldMichel opened this issue May 4, 2021 · 0 comments
Open

KeyError in locus_selection.py #22

ThibauldMichel opened this issue May 4, 2021 · 0 comments

Comments

@ThibauldMichel
Copy link

ThibauldMichel commented May 4, 2021

Hello Tobias,

I am reporting an issue, but I am not sure if the problem is the code or my dataset format.
I am using secapr 2.1.1.
During the locus selection step of the pipeline, a KeyError appear:

Reading read-depth info for B.........
Generating locus database.........
Traceback (most recent call last):
  File "/mnt/shared/scratch/usr/apps/conda/envs/secapr_env/bin/secapr", line 10, in <module>
    sys.exit(main())
  File "/mnt/shared/scratch/usr/apps/conda/envs/secapr_env/lib/python3.8/site-packages/secapr/__main__.py", line 55, in main
    args.func(args)
  File "/mnt/shared/scratch/usr/apps/conda/envs/secapr_env/lib/python3.8/site-packages/secapr/locus_selection.py", line 312, in main
    reference_pickle = reference_file_dict[sample]
KeyError: 'B'

Given my still rudimentary understanding of Python code, I know the script is trying to access the key inside a non-existent dictionary. But I can't find the source of the problem.
Would you think it is a problem with the code, or with my dataset?

Kind regards,

Thibauld

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