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

Error creating Krona plots in metaquast.py #251

Open
RayanaFeltrin opened this issue Aug 30, 2023 · 7 comments
Open

Error creating Krona plots in metaquast.py #251

RayanaFeltrin opened this issue Aug 30, 2023 · 7 comments

Comments

@RayanaFeltrin
Copy link

RayanaFeltrin commented Aug 30, 2023

Hello!

I have recently run the command metaquast.py -o quast_ANT001 --large -l metaSPAdes,MEGAHIT meta_assembly_001ANT/contigs.fasta mega_assembly_001ANT/final.contigs.fa

At the final step of the software, I got the following error, which was also obtained in #216, #246 and #237 and still not solved:

Drawing interactive Krona plots...

'NoneType' object is not iterable
Traceback (most recent call last):
File "/home/rayana/Desktop/tools/quast/metaquast.py", line 427, in
return_code = main(sys.argv[1:])
File "/home/rayana/Desktop/tools/quast/metaquast.py", line 417, in main
html_saver.create_meta_report(output_dirpath, json_texts)
File "/home/rayana/Desktop/tools/quast/quast_libs/html_saver/html_saver.py", line 257, in create_meta_report
create_krona_charts(taxons_for_krona, meta_log, results_dirpath, json_texts)
File "/home/rayana/Desktop/tools/quast/quast_libs/html_saver/html_saver.py", line 363, in create_krona_charts
for section in report:
TypeError: 'NoneType' object is not iterable

I have also tried to install Krona separately and put ~/Desktop/tools/Krona/KronaTools in the ~/.bashrc file, but nothing has changed.

I really need to solve this to continue my work and would appreciate any help.

Thank you in advance.

@RayanaFeltrin
Copy link
Author

RayanaFeltrin commented Sep 7, 2023

@alexeigurevich @vyahhi @asl @ad3002 @sjackman, help please!

@alexeigurevich
Copy link
Contributor

@RayanaFeltrin sorry for the huge delay, I am looking into this right now!

@alexeigurevich
Copy link
Contributor

I just submitted a dirty workaround to the master branch. You can now run metaquast.py with the --no-krona option to skip the creation of Krona charts. In this case, at least everything else will be completed and you will have all other MetaQUAST reports including interactive HTML files.

I am still looking into this issue and hopefully will have a proper fix soon, so the Krona charts will be created when possible.
After that, I plan to prepare a bugfix release 5.2.1 and will close this and three related issues.

@RayanaFeltrin
Copy link
Author

RayanaFeltrin commented Sep 8, 2023

Thank you, @alexeigurevich ! I've just runned it with --no-krona and got to open the HTML file.

@bheimbu
Copy link

bheimbu commented Feb 5, 2024

Hi @alexeigurevich,

any news about this issue? I'm encountering the same problem. Actually, I'd like to use quast installed with mamba, but this comes without --no-krona option resulting in a failed run.

Cheers Bastian

@RayanaFeltrin
Copy link
Author

RayanaFeltrin commented Feb 27, 2024

Hello @alexeigurevich!

I am also facing the same problem as @bheimbu... I've run the following command in a Slurm cluster:
metaquast.py scaffolds.fasta final.contigs.fa -o quast_ANT001 -t 10 --large --no-krona > quast_ANT001.out 2> quast_ANT001.err

... and got the error:

Usage: metaquast.py [options]

metaquast.py: error: no such option: --no-krona

What could I do to solve this?
Thank you in advance!

@bgruening
Copy link

@alexeigurevich can you please create a new release? I can create a new conda package.

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

4 participants