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

how to use clustergrammer2 with "dash" for my web app #124

Open
jessielyons opened this issue Mar 6, 2023 · 4 comments
Open

how to use clustergrammer2 with "dash" for my web app #124

jessielyons opened this issue Mar 6, 2023 · 4 comments

Comments

@jessielyons
Copy link

Hello,

I am quite lost on how to use clustergrammer2 with "dash". I really want to show a heatmap in my app and appreciate your feedback asap.

My current clustergrammer2 code which works.

num_rows = 71
n1 = Network(CGM2)

n1.load_df(np.log2(df_allgrp_fill_transposed), meta_col=df_allgrp_fill_meta, col_cats=col_cats)
n1.set_global_cat_colors(df_colors)
n1.filter_N_top(axis='row', N_top=num_rows, rank_type='var')
n1.set_manual_category(col='Tissue', preferred_cats=df_colors)
n1.widget()

Thanks so much!

@jessielyons
Copy link
Author

Hey, anyone any response? So I can atleast create a .json file. But how do I read this json file via dash to build a dashboard?

Please help :)

@cornhundred
Copy link
Contributor

Hi, I haven't used Dash but I can try to look into it.

@jessielyons
Copy link
Author

Hi @cornhundred ,

Thanks and look forward to your help. Alternatively, do you have a script available on how to display the .json file perhaps into a website for this heatmap or an .html file? Thanks again!

@cornhundred
Copy link
Contributor

Yes, @jessielyons this ObservableHQ collection has several examples of how the visualization can be embedded into a JavaScript application https://observablehq.com/collection/@cornhundred/clustergrammer-gl Let me know if you have any questions

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

No branches or pull requests

2 participants