You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for developing the lefse.
An error may be encountered, when run "lefse_plot_res.py" as follows:
lefse_plot_res.py --feature_font_size 8 --format pdf --class_legend_font_size 8 lefse.output lefse.pdf
File "lefse_plot_res.py", line 102, in plot_histo_hor
if len(rr) > params['max_feature_len']: rr = rr[:params['max_feature_len']/2-2]+" [..]"+rr[-params['max_feature_len']/2+2:] TypeError: slice indices must be integers or None or have an index method
It should be
"if len(rr) > params['max_feature_len']: rr = rr[:int(params['max_feature_len']/2-2)]+" [..]"+rr[int(-params['max_feature_len']/2+2):]"
The text was updated successfully, but these errors were encountered:
I ran into this similar problem and like you, originally changed the code. However, we also thought this might result in incorrect plotting of the results. We added the option --max_feature_len and this helped (tried out setting around 100 as default is 60). Hope this helps someone!
Hi, thank you for developing the lefse.
An error may be encountered, when run "lefse_plot_res.py" as follows:
File "lefse_plot_res.py", line 102, in plot_histo_hor
if len(rr) > params['max_feature_len']: rr = rr[:params['max_feature_len']/2-2]+" [..]"+rr[-params['max_feature_len']/2+2:]
TypeError: slice indices must be integers or None or have an index method
It should be
"if len(rr) > params['max_feature_len']: rr = rr[:int(params['max_feature_len']/2-2)]+" [..]"+rr[int(-params['max_feature_len']/2+2):]"
The text was updated successfully, but these errors were encountered: