shuzhao-li-lab / asari

asari, metabolomics data preprocessing
Other
38 stars 9 forks source link

Asari viz issue #79

Closed feranmi-arcaea closed 7 months ago

feranmi-arcaea commented 10 months ago

ValueError: Unexpected option 'legend_opts' for Curve type across all extensions. Similar options for current extension ('bokeh') are: ['backend_opts'].

//Asari dashboard// Press Control-C to exit. Traceback (most recent call last): File "/home/bugs/miniconda3/bin/asari", line 8, in sys.exit(main()) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/main.py", line 209, in main viz(parameters, args) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/main.py", line 79, in viz dashboard(project_desc, cmap, epd, Ftable) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/dashboard.py", line 281, in dashboard summary = get_summary_panel(project_desc, peakDict, epdDict, Ftable, cmap) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/dashboard.py", line 248, in get_summary_panel RTAlign = prepare_rt_alignment(cmap).hvplot.line(title="Retention Time Deviation vs Retention Time",xlabel="Retention Time (sec)", File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 44, in pipelined_call result = call(*args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 579, in call return self._dispatch_opts( *args, *kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 583, in _dispatch_opts return self._base_opts(args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 661, in _base_opts return self._obj.options(*new_args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/data/init.py", line 196, in pipelined_fn result = method_fn(*args, *kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/data/init.py", line 1209, in options return super().options(args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/dimension.py", line 1272, in options expanded_backends = [(backend, opts._expand_options(options, backend))] File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/util/init.py", line 366, in _expand_options cls._options_error(opt, objtype, backend, valid_options) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/util/init.py", line 407, in _options_error raise ValueError(f'Unexpected option {opt!r} for {objtype} type ' ValueError: Unexpected option 'legend_opts' for Curve type across all extensions. Similar options for current extension ('bokeh') are: ['backend_opts'].

jmmitc06 commented 10 months ago

Thanks for bringing this to my attention. Some additional information would be helpful here though. This seems to be a problem with a third-party library, not asari per se and I'm curious if this is a versioning issue? Can you replicate the problem outside of anaconda or with a new venv?

Nov 10, 2023 10:53:09 AM feranmi-arcaea @.***>:

ValueError: Unexpected option 'legend_opts' for Curve type across all extensions. Similar options for current extension ('bokeh') are: ['backend_opts'].

///Asari dashboard/// Press Control-C to exit. Traceback (most recent call last): File "/home/bugs/miniconda3/bin/asari", line 8, in sys.exit(main()) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/main.py", line 209, in main viz(parameters, args) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/main.py", line 79, in viz dashboard(project_desc, cmap, epd, Ftable) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/dashboard.py", line 281, in dashboard summary = get_summary_panel(project_desc, peakDict, epdDict, Ftable, cmap) File "/home/bugs/miniconda3/lib/python3.10/site-packages/asari/dashboard.py", line 248, in get_summary_panel RTAlign = prepare_rt_alignment(cmap).hvplot.line(title="Retention Time Deviation vs Retention Time",xlabel="Retention Time (sec)", File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 44, in pipelined_call result = call(*args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 579, in call return self._dispatch_opts( *args, *kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 583, in _dispatch_opts return self._base_opts(args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/accessors.py", line 661, in _base_opts return self._obj.options(*new_args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/data/init.py", line 196, in pipelined_fn result = method_fn(*args, *kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/data/init.py", line 1209, in options return super().options(args, kwargs) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/core/dimension.py", line 1272, in options expanded_backends = [(backend, opts._expand_options(options, backend))] File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/util/init.py", line 366, in _expand_options cls._options_error(opt, objtype, backend, valid_options) File "/home/bugs/miniconda3/lib/python3.10/site-packages/holoviews/util/init.py", line 407, in _options_error raise ValueError(f'Unexpected option {opt!r} for {objtype} type ' ValueError: Unexpected option 'legend_opts' for Curve type across all extensions. Similar options for current extension ('bokeh') are: ['backend_opts'].

— Reply to this email directly, view it on GitHub[https://github.com/shuzhao-li-lab/asari/issues/79], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ACNJZYLM62JGGWXFWA7GFJTYDZLXJAVCNFSM6AAAAAA7GOHUNSVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DOOJYHE2DANY]. You are receiving this because you are subscribed to this thread. [Tracking image][https://github.com/notifications/beacon/ACNJZYPMX3ODJAAFWELQ5Y3YDZLXJA5CNFSM6AAAAAA7GOHUNSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHM7SPT4.gif]

jmmitc06 commented 7 months ago

Were you able to replicate this issue? I have not been able to and makes me think it is a third-party issue. I'm going to close the issue since there has not been any update but please re-open if you continue to have problems.

feranmi-arcaea commented 7 months ago

Sorry didn't have enough time to try replicating it. But no I wasn't able to fix it. I just ended up removing the legends_opt part of the visualization from the code eventually so I could get visualizations.

jmmitc06 commented 7 months ago

Thanks for the extra detail, I will look into that part of the code then to find the problem.

On Fri, Jan 19, 2024 at 4:24 PM feranmi-arcaea @.***> wrote:

Sorry didn't have enough time to try replicating it. But no I wasn't able to fix it. I just ended up removing the legends_opt part of the visualization from the code eventually so I could get visualizations.

— Reply to this email directly, view it on GitHub https://github.com/shuzhao-li-lab/asari/issues/79#issuecomment-1901134821, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNJZYP3TBYBDYDCOXVK76DYPLQAJAVCNFSM6AAAAAA7GOHUNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBRGEZTIOBSGE . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Joshua Mitchell