-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jsvis prototype #12
Jsvis prototype #12
Conversation
merge action preview
|
Looks interesting, shows in the preview! How do I load file in there? |
Right now it works like a galaxy plugin so file cannot be changed in the interface, if you want to try another file you have to add it to "test_files" and point to it in main.js I could add a new box that is populated with a list of accessible files and let the user choose between them if you want. It wasn't clear if the use case for a standalone version was a file or list of files or a specific endpoint is set in the code like with other js library and you instantiate the interface for a specific file or if it was up to the user to provide the files himself. Since there are probably way better tool to do that locally with local files I thought the main use would be that files are remote |
It makes sense if it works like AladinLite, with an option to load local file or by URL.
This would be useful. Else the demonstration does not actually demonstrate.
We wanted it to be like AladinLite in the file load process. Presumably it's not actually difficult to select the source from upload and URL, right?
There is really not actually. UIs largely moved to the Web/Browser experience, but this sort of tool, similar to what Andrii was mentioning (called FV), was not re-implemented for Web. This is why we kind of have to do it from scratch. |
Ok no problem I will add a new box with an input that lets the user specify a file (url is the easiest right now but needs to come from a cors compliant server (or we can use an open cors proxy server), for local files uploaded directly I will just have to check fits-reader cause there was some specific things when dealing with local files) and once it's loaded it will be added to a list of available files that the user can select |
Would be really cool if there was something for the demo today! |
I just finished error bars for d3 so not sure I will have the time but will try |
For reference :
|
Regarding file upload, changes to the code and interface are still in progress and it's not testable right now but an usable minimal version should be ready during the week Local file upload works with fits reader you just have to do things a bit differently that you would normally do but it works fine. However there were other things to take into consideration since users will be able to upload file directly, that csv support should be added, plus arithmetic column and multiple datasets support. Ongoing development :
|
@francoismg I made a small change so that the file that's in the repo is accessible in preview |
yes I have the same thing locally it was just some test I made, I will remove that so it's not confusing |
check how it's done here https://github.com/oda-hub/dispatcher-app/blob/master/cdci_data_analysis/analysis/plot_tools.py add range-zoom UI |
How is it going, @francoismg ? |
Custom range is working for D3 still a few bugs but seems to work, I will push it so you can test that, just need to remove things that are not working. If you want to test it you need to select D3, x range is working fine but y range needs x range to be set to work (one of the bugs I'm working on). Bokeh part should be good soon and hopefully the plugin part and the other unrelated bugs I have spotted could be ready for friday |
Arithmetic columns are now available for error bars. Updated npm package has been published. Will test again to import the package into another webpack project locally and then to galaxy when it's working |
Support for numbers in arithmetic column has been added Spotted a bug to fix -> deleted custom columns can still appear in dropdown |
Integration inside a galaxy plugin is mostly ok, had to make some small changes since it's now a dependency of another webpack app but there seems to be some issues with yarn that cannot find the package during the client build, not sure if it's really related to yarn or just one of the generic issues when trying to build a plugin like with the first version of the plugin Will make a new branch for the galaxy pull request once the issue is fixed |
Build and file load issues inside galaxy have been fixed will make the new branch for pull request and put the link for the new branch here |
There seems to have some bugs on galaxy latest dev branch (unrelated to the plugin) since at least yesterday that prevent client build. I pushed the modifications so it's ready for pr but probably better to wait for dev branch to work to make a check before opening the pr branch is available here: https://github.com/esg-epfl-apc/galaxy/tree/fits-graph-visualization-plugin-pr |
What is not working on the dev branch? We do have a few green PRs, so it should work. |
There seems to be 2 typescript or vue errors (by forking latest dev or directly cloning https://github.com/galaxyproject/galaxy.git) TS1484: 'Workflow' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled TS2339: Property 'username' does not exist on type '{ isAnonymous: false; deleted: boolean; email: string; id: string; is_admin: boolean; nice_total_disk_usage: string; preferences: Record<string, never>; preferred_object_store_id?: string Coming from WorkflowInvocationHeader.vue.ts and raised after plugin build when building the whole app frontend (I think) Build from last week was working fine on the same machine btw |
Issues with the latest dev build seem to have been resolved, will update the fork and test it locally |
…tings standard config change
Draft pr is available here galaxyproject/galaxy#19003 Spotted a small issue when working with multiple files and trying to remove a file from plot, was working before so shouldn't be too much trouble to fix, will make pr ready to review after that if it's ok with you |
Bug has been fixed, can make the pr ready for review if ok with you |
Just spotted some inconsistencies when using user defined arf and rmf files names for spectrum data (sometimes processed columns are not added to available columns for axis), will fix that and then mark galaxy pr ready for review |
Following issues related to previously mentioned bug have been fixed :
Some duplication issues seemed to be linked to some race condition and a component not being properly recycled so now a change in file state (loaded -> available <-> current) removes the file details component to avoid the issue Will publish the new package, push changes, update the galaxy pr and mark it ready for review |
As long as the package is already published, probably it's time to merge this PR into master? |
@francoismg , as soon as you are ready! |
|
No my bad it's all good |
Prototype for js visualization
Still to do :
@volodymyrss @dsavchenko