CAMI-challenge / OPAL

OPAL: Open-community Profiling Assessment tooL
https://cami-challenge.github.io/OPAL/
Apache License 2.0
25 stars 6 forks source link

TypeError: format() got an unexpected keyword argument 'precision' #49

Closed zhang570221322 closed 2 years ago

zhang570221322 commented 2 years ago

When I run the Example:

To run the example, please download the files given in the data directory.

python3 opal.py -g data/goldstandard_low_1.bin \ data/cranky_wozniak_13 \ data/grave_wright_13 \ data/furious_elion_13 \ data/focused_archimedes_13 \ data/evil_darwin_13 \ data/agitated_blackwell_7 \ data/jolly_pasteur_3 \ -l "TIPP, Quikr, MP2.0, MetaPhyler, mOTU, CLARK, FOCUS" \ -o output_dir

It occurs the error. The stack of errors is as follows:

Traceback (most recent call last):
  File "opal.py", line 454, in <module>
    main()
  File "opal.py", line 447, in main
    html.create_html(pd_rankings, ranks_scored, pd_metrics, labels, sample_ids_list, plots_list, output_dir, args.desc)
  File "/data/home/wlzhang/classfication/software/statistics/OPAL/src/html_opal.py", line 519, in create_html
    select_sample, select_rank, heatmap_legend_div, mytable1 = create_metrics_table(pd_metrics, labels, sample_ids_list)
  File "/data/home/wlzhang/classfication/software/statistics/OPAL/src/html_opal.py", line 386, in create_metrics_table
    a= mydf_metrics.style.apply(get_heatmap_colors, df_metrics=mydf_metrics, axis=1).format(precision=3)
TypeError: format() got an unexpected keyword argument 'precision'
fernandomeyer commented 2 years ago

same as #47