Closed mladen5000 closed 8 months ago
Hi @mladen5000,
Thanks for reporting this. I will give it a try as soon as I get back from vacation.
Although simple to solve, is not something I can do right now.
Does this error happen when you use Prokka or Bakta as the generic annotation tool? Could you try running with the other, just to guarantee if it happens for both anotators?
Otherwise, you would need to run the pipeline skipping this process or ignoring this error right now so you could use the rest of the outputs until I fix the python script.
I believe the .get solution you suggested might be the best option.
Hello hello @mladen5000 , I have added a possible fix in a new developmental branch. Can you give it a try? Since it is a MAG, and not a genome, maybe other keys shall also fail.
Would be basically the same command, you would just need to add the -r
parameter:
nextflow run fmalmeida/bacannot -r 111-error-on-summary-step-when-missing-annotationidtxt-key <all your other parameters>
It works now, thanks!
Awesome. Will work on wrapping it up as a patch release and close the issue by then.
Thanks.
Hi @mladen5000 ,
I have released a new version of the python package that I use for the summary and updated the docker image.
So I can merge this issue for a new release, can you run it once more, using -latest
so I am sure it runs?
nextflow \
run fmalmeida/bacannot \
-r 111-error-on-summary-step-when-missing-annotationidtxt-key \
-latest \
<all your other parameters>
Ran to completion and output looks good
Thanks for confirmation.
v3.3.1
released
Describe the bug A missing key in annotations .txt will cause the bacannot2json code to break.
I think this can be resolved by using .get in the python script or by modifying the file to contain "rRNAs: 0" (similarly the error occurs with tmRNA occasionally as well.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.