ZeroDivisionError: float division by zero

40 views
Skip to first unread message

BVG

unread,
Apr 26, 2016, 4:29:29 AM4/26/16
to Qiime 1 Forum
Hi all!

When running
summarize_taxa_through_plots.py -i OTU.biom -o summary_taxa

I get the error
Traceback (most recent call last):
  File "/usr/local/bin/summarize_taxa_through_plots.py", line 143, in <module>
    main()
  File "/usr/local/bin/summarize_taxa_through_plots.py", line 140, in main
    status_update_callback=status_update_callback)
  File "/usr/local/lib/python2.7/site-packages/qiime/workflow/downstream.py", line 709, in run_summarize_taxa_through_plots
    close_logger_on_success=close_logger_on_success)
  File "/usr/local/lib/python2.7/site-packages/qiime/workflow/util.py", line 122, in call_commands_serially
    raise WorkflowError(msg)
qiime.workflow.util.WorkflowError: 

*** ERROR RAISED DURING STEP: Plot Taxonomy Summary
Command run was:
 plot_taxa_summary.py -i summary_taxa/OTU_L2.txt,summary_taxa/OTU_L3.txt,summary_taxa/OTU_L4.txt,summary_taxa/OTU_L5.txt,summary_taxa/OTU_L6.txt -o summary_taxa/taxa_summary_plots/ 
Command returned exit status: 1
Stdout:

Stderr
Traceback (most recent call last):
  File "/usr/local/bin/plot_taxa_summary.py", line 278, in <module>
    main()
  File "/usr/local/bin/plot_taxa_summary.py", line 274, in main
    resize_nth_label, label_type, include_html_legend)
  File "/usr/local/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 1138, in make_all_charts
    resize_nth_label, label_type, include_html_legend))
  File "/usr/local/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 984, in get_counts
    chart_type, False)
  File "/usr/local/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 715, in get_fracs
    frac = float(n) / total
ZeroDivisionError: float division by zero


I have read it can be something related to the format of the .biom file (CSMat vs SparseMat), but I can't find where print_biom_python_config.py script is. 
Creating a file .biom_config and putting the line python_code_sparse_backend      CSMat, as suggested in another post haven't worked.

Any clue?

Thank you in advance!

TonyWalters

unread,
Apr 26, 2016, 8:04:05 AM4/26/16
to Qiime 1 Forum
Reply all
Reply to author
Forward
0 new messages