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

List index out of range interpreting serotype 39 result #7

Closed
CarmenSheppard opened this issue Aug 3, 2020 · 2 comments
Closed

List index out of range interpreting serotype 39 result #7

CarmenSheppard opened this issue Aug 3, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@CarmenSheppard
Copy link
Owner

Analysing mash screen tsv for 709775 serotype 39 type strain:

Analysing mash screen output. Traceback (most recent call last): File "/home/carmen.sheppard/gitrepository/PneumoCaT2/pneumocat2.py", line 80, in <module> main(args, version) File "/home/carmen.sheppard/gitrepository/PneumoCaT2/pneumocat2.py", line 38, in main run_parse(analysis, tsvfile) File "/phengs/hpc_storage/home/carmen.sheppard/gitrepository/PneumoCaT2/run_scripts/run_stage1.py", line 160, in run_parse group_check(filtered_df, analysis.database) File "/phengs/hpc_storage/home/carmen.sheppard/gitrepository/PneumoCaT2/run_scripts/run_stage1.py", line 92, in group_check stage1_result = list(get_pheno_list(results, session)) File "/phengs/hpc_storage/home/carmen.sheppard/gitrepository/PneumoCaT2/run_scripts/run_stage1.py", line 34, in get_pheno_list out_res.append(pheno[0][0]) IndexError: list index out of range

@CarmenSheppard CarmenSheppard added the bug Something isn't working label Aug 3, 2020
@CarmenSheppard CarmenSheppard self-assigned this Aug 3, 2020
@CarmenSheppard
Copy link
Owner Author

CarmenSheppard commented Aug 4, 2020

Error in database - no serotype hit for 39 - match to phenotype was 38 hence no hits. . Added catch and CtvdbError:

Traceback (most recent call last):
File "", line 1, in
File "/home/phe.gov.uk/carmen.sheppard/.pycharm_helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/home/phe.gov.uk/carmen.sheppard/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/phe.gov.uk/carmen.sheppard/PneumoCaT2/pneumocat2.py", line 80, in
main(args, version)
File "/home/phe.gov.uk/carmen.sheppard/PneumoCaT2/pneumocat2.py", line 38, in main
run_parse(analysis, tsvfile)
File "/home/phe.gov.uk/carmen.sheppard/PneumoCaT2/run_scripts/run_stage1.py", line 164, in run_parse
group_check(filtered_df, analysis.database)
File "/home/phe.gov.uk/carmen.sheppard/PneumoCaT2/run_scripts/run_stage1.py", line 96, in group_check
stage1_result = list(get_pheno_list(results, session))
File "/home/phe.gov.uk/carmen.sheppard/PneumoCaT2/run_scripts/run_stage1.py", line 40, in get_pheno_list
raise CtvdbError(f"No phenotype found for hit {hit} check CTVdb integrity")
exceptions.CtvdbError: CtvdbError: No phenotype found for hit 39 check CTVdb integrity

Update to CTVdb to be done shortly to fix issue.

@CarmenSheppard
Copy link
Owner Author

Database fixed in development - merge to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant