Skip to content
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

Save currrent HTML view as HTML #568

Open
YasinEl opened this issue Jan 23, 2025 · 3 comments
Open

Save currrent HTML view as HTML #568

YasinEl opened this issue Jan 23, 2025 · 3 comments

Comments

@YasinEl
Copy link

YasinEl commented Jan 23, 2025

Hello and thank you for maintaining this.

I am creating empress HTMLs, through:

empress tree-plot --tree $tree --feature-metadata $metadata --output-dir empress_results

After that I manually set up different bar plots etc in the HTML.

I was wondering if there is any way to save that manual progress in the HTML (to send it to collaborators, etc.). Setting up views can be time-consuming, and maintaining the interactive aspect is essential for many things (i.e., this is not solved through the svg/png export).

@YasinEl
Copy link
Author

YasinEl commented Jan 23, 2025

Just realized this has been already requested in #551. So I understand this is not yet possible?

@fedarko
Copy link
Collaborator

fedarko commented Jan 27, 2025

Hi -- sorry, this functionality is not currently supported in Empress. It would be really useful to have it (I'm aware that manually configuring the barplots, etc. multiple times is a pain point); however, at least speaking personally, I don't have time to address it right now. I hope this situation will change sometime soon.

Regarding #551, I think the plan we had there was using a JSON format (like Emperor uses) to support exporting / importing the Empress settings. So, in the workflow of e.g. sharing an Empress HTML visualization with your collaborators, this would mean that you would also share a small JSON file alongside the HTML file, which could later be loaded in the Empress interface to automatically customize the visualization as it was before. Does this fit your needs?

@YasinEl
Copy link
Author

YasinEl commented Jan 27, 2025

Thank you.

I imagine it would fit the needs if it was possible to place the json into the empress project folder under a specified name and have it auto-load from there/save to there by clicking a button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants