czbiohub-sf / tabula-muris

Code and annotations for the Tabula Muris single-cell transcriptomic dataset.
https://www.nature.com/articles/s41586-018-0590-4
BSD 3-Clause "New" or "Revised" License
187 stars 91 forks source link

js for data interaction website #249

Closed jessegmeyerlab closed 1 year ago

jessegmeyerlab commented 1 year ago

For the website https://tabula-muris.ds.czbiohub.org/ we are wondering how the javascript was implemented for the interactive data update. Did you pre-generate all the images and grab them as they are requested or is the server computing the new image on the fly and sending it?

aopisco commented 1 year ago

@neevor is the best person to comment regarding the details, but in a nutshell the images were all pre-computed and then just grabbed

neevor commented 1 year ago

That's correct. They are all pre-generated and then the JS just updates the img src value to the selected values. It's a very unsophisticated approach :).

On Wed, Jan 11, 2023 at 3:09 PM aopisco @.***> wrote:

Closed #249 https://github.com/czbiohub/tabula-muris/issues/249 as completed.

— Reply to this email directly, view it on GitHub https://github.com/czbiohub/tabula-muris/issues/249#event-8206211270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJLF7FV6ZDEQQT22X4MNDWR44TZANCNFSM6AAAAAATRJWQLU . You are receiving this because you were mentioned.Message ID: @.***>

jessegmeyerlab commented 1 year ago

Thanks. When you have static data this seems like the best way. We were thinking about how to do this on a repository scale when you can't afford to store all the images. Even sending all the data to the browser and using d3 for vis seems infeasible when you get into hundreds of MB per dataset. Probably need some back and forth with server. Any ideas?

On Thu, Jan 12, 2023, 11:21 AM neevor @.***> wrote:

That's correct. They are all pre-generated and then the JS just updates the img src value to the selected values. It's a very unsophisticated approach :).

On Wed, Jan 11, 2023 at 3:09 PM aopisco @.***> wrote:

Closed #249 https://github.com/czbiohub/tabula-muris/issues/249 as completed.

— Reply to this email directly, view it on GitHub https://github.com/czbiohub/tabula-muris/issues/249#event-8206211270, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAAJLF7FV6ZDEQQT22X4MNDWR44TZANCNFSM6AAAAAATRJWQLU

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/czbiohub/tabula-muris/issues/249#issuecomment-1380898197, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRLBLGLDNDSKI3XLWMMEHDWSBKS3ANCNFSM6AAAAAATRJWQLU . You are receiving this because you authored the thread.Message ID: @.***>

aopisco commented 1 year ago

For Tabula Sapiens @kyleawayan built these visualizations https://tabula-sapiens-portal.ds.czbiohub.org/summaryvisualizations but what we are also doing is self-hosting cellxgene e.g. https://tabula-sapiens-portal.ds.czbiohub.org/organs