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:530 when running the pipeline #55

Closed
harrismia opened this issue Sep 6, 2019 · 6 comments
Closed

KeyError:530 when running the pipeline #55

harrismia opened this issue Sep 6, 2019 · 6 comments

Comments

@harrismia
Copy link

Hi Jody,

I am getting the following error when I run the pipline on one of our files.   I am using version 2.6.   It is working on most of our files but fails on this one for some reason.  Unfortunately I am not able to share the file at this time.  

Thanks, 


   Michael 

Running command:
set -u pipefail; samtools view -bL /sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/share/tbprofiler/tbdb.bed bamDir/fileWerror.bam | samtools depth -aa --reference /sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/share/tbprofiler/tbdb.fasta -
Traceback (most recent call last):
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3//bin/tb-profiler", line 347, in
args.func(args)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3//bin/tb-profiler", line 93, in main_profile
results = tbp.reformat(results,conf)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/lib/python3.7/site-packages/tbprofiler/reformat.py", line 247, in reformat
results = reformat_annotations(results,conf)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/lib/python3.7/site-packages/tbprofiler/reformat.py", line 217, in reformat_annotations
var["change"] = pp.reformat_mutations(var["change"],var["type"],var["locus_tag"],chr2gene_pos)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/lib/python3.7/site-packages/pathogenprofiler/utils.py", line 53, in reformat_mutations
gene_start = gene_info[chr_pos] + 1
KeyError: 530

@jodyphelan
Copy link
Owner

jodyphelan commented Sep 7, 2019

I had found some similar looking error messages and have uploaded a fix with the latest pathogen-profiler commit. Try updating this library and check if you still get the error.

Jody

@harrismia
Copy link
Author

Unfortunately, I am still getting the error (see below). This is on a different file than the original bug report. I am getting KeyError: 1290

I do have file that I can share with you for debugging purposes. What would be the best way to get it to you? It is not yet in a public repository.

set -u pipefail; samtools view -bL /sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/share/tbprofiler/tbdb.bed S132.bam | samtools depth -aa --reference /sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/share/tbprofiler/tbdb.fasta -
Traceback (most recent call last):
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3//bin/tb-profiler", line 347, in
args.func(args)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3//bin/tb-profiler", line 93, in main_profile
results = tbp.reformat(results,conf)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/lib/python3.7/site-packages/tbprofiler/reformat.py", line 247, in reformat
results = reformat_annotations(results,conf)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/lib/python3.7/site-packages/tbprofiler/reformat.py", line 217, in reformat_annotations
var["change"] = pp.reformat_mutations(var["change"],var["type"],var["locus_tag"],chr2gene_pos)
File "/sysapps/cluster/software/Anaconda3/5.3.0/envs/tbprofiler-2.6-python3/lib/python3.7/site-packages/pathogenprofiler/utils.py", line 69, in reformat_mutations
gene_start = gene_info[chr_pos]
KeyError: 1290

@harrismia
Copy link
Author

Hi Jody,

I saw that you sent me a response to this with instructions on where to put the file but I can't seem to find it. Could you send it again? Thanks.

@jodyphelan
Copy link
Owner

Just sent it again.

@jodyphelan
Copy link
Owner

This issue is now fixed in the latest conda build (v2.6.1)

@harrismia
Copy link
Author

Thanks a lot! We will update to version 2.6.1 and let you know if we run into any issues.

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

2 participants