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

TypeError: 'NoneType' object is not subscriptable #82

Open
ywilke opened this issue Feb 20, 2024 · 0 comments
Open

TypeError: 'NoneType' object is not subscriptable #82

ywilke opened this issue Feb 20, 2024 · 0 comments

Comments

@ywilke
Copy link

ywilke commented Feb 20, 2024

I am trying to run ANARCI on large number of sequences and I am getting the following error.
I cannot narrow it down to which sequence is causing the error.

  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-298aff8b-ef33-42af-99ab-0bfccbc42e7c/lib/python3.9/site-packages/anarci/anarci.py", line 941, in run_anarci
    csv_output(sequences, numbered, alignment_details, outfile)
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-298aff8b-ef33-42af-99ab-0bfccbc42e7c/lib/python3.9/site-packages/anarci/anarci.py", line 287, in csv_output
    details[i][j].get('germlines',{}).get( 'j_gene',[['',''],0] )[0][1],
TypeError: 'NoneType' object is not subscriptable

It seems a None snuck into the j_gene value. The csv_output function can't handle a None.

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