-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I got this error when running both Krukal and Fit-ZIG, so I then looked through the code base.
ERROR ~ Error executing process > 'BIGMAP_ANALYZE (BiG-MAP.analyse)'
Caused by:
Process BIGMAP_ANALYZE (BiG-MAP.analyse) terminated with an error exit status (1)
Command executed:
mkdir -p analyse_out
BiG-MAP.analyse.py --explore --compare -B "BiG-MAP.map.meta.dec.biom" -T metagenomic -M Function -g High Low -O analyse_out
Command exit status:
1
Command output:
Loading biom file_____________
Making explore heatmap________
Kruskal-wallis model__________
Fit-ZIG model__________
it= 0, nll=700.66, log10(eps+1)=Inf, stillActive=1150
it= 1, nll=740.44, log10(eps+1)=0.01, stillActive=12
it= 2, nll=740.81, log10(eps+1)=0.01, stillActive=8
it= 3, nll=740.83, log10(eps+1)=0.01, stillActive=7
it= 4, nll=740.87, log10(eps+1)=0.00, stillActive=5
it= 5, nll=740.92, log10(eps+1)=0.00, stillActive=5
it= 6, nll=740.96, log10(eps+1)=0.00, stillActive=4
it= 7, nll=741.00, log10(eps+1)=0.00, stillActive=4
it= 8, nll=741.04, log10(eps+1)=0.00, stillActive=3
it= 9, nll=741.08, log10(eps+1)=0.00, stillActive=3
Command error:
Traceback (most recent call last):
File "/mount/britton/Jose/DBs/github_repos_with_commit_updates_ahead_of_conda_package_tool/BiG-MAP/src/BiG-MAP.analyse.py", line 1229, in
main()
File "/mount/britton/Jose/DBs/github_repos_with_commit_updates_ahead_of_conda_package_tool/BiG-MAP/src/BiG-MAP.analyse.py", line 1220, in main
sample_type, args.outdir, args.groups, fitzig_file, "fitzig", args.alpha_fitzig)
File "/mount/britton/Jose/DBs/github_repos_with_commit_updates_ahead_of_conda_package_tool/BiG-MAP/src/BiG-MAP.analyse.py", line 987, in make_compare
ax1.set_yticklabels(labels=y_axis_labels, rotation=0, fontsize=35)
File "/mount/britton/Jose/conda-envs/mamba/envs/BiG-MAP_analyse/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 63, in wrapper
return get_method(self)(*args, **kwargs)
File "/mount/britton/Jose/conda-envs/mamba/envs/BiG-MAP_analyse/lib/python3.6/site-packages/matplotlib/cbook/deprecation.py", line 451, in wrapper
return func(*args, **kwargs)
File "/mount/britton/Jose/conda-envs/mamba/envs/BiG-MAP_analyse/lib/python3.6/site-packages/matplotlib/axis.py", line 1796, in _set_ticklabels
return self.set_ticklabels(labels, minor=minor, **kwargs)
File "/mount/britton/Jose/conda-envs/mamba/envs/BiG-MAP_analyse/lib/python3.6/site-packages/matplotlib/axis.py", line 1718, in set_ticklabels
"The number of FixedLocator locations"
ValueError: The number of FixedLocator locations (117), usually from a call to set_ticks, does not match the number of ticklabels (234).
I went head and made a small patch in both functions make_compare and in make_explore
I added this one line above
ax1.set_yticklabels(labels=y_axis_labels, rotation=0, fontsize=35)
So now it looks like this:
ax1.set_yticks(np.arange(len(y_axis_labels)) + 0.5)
ax1.set_yticklabels(labels=y_axis_labels, rotation=0, fontsize=35)
This helped resolved that issue for me.
Let me know your thoughts?