RDeF654875678597657 commited on
Commit
6743832
·
1 Parent(s): 4e2c941
Files changed (1) hide show
  1. app.py +32 -29
app.py CHANGED
@@ -208,35 +208,8 @@ class MERFISH_viz(param.Parameterized):
208
  viz = MERFISH_viz(merfish_data, datasets[0], merfish_data[datasets[0]]["class"].unique(),
209
  merfish_data[dataset]["subclass"].unique(), 0)
210
 
211
- # Title of the paper and authors
212
- # Custom HTML for the title
213
- custom_title_html = """
214
- <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
215
- <h1 style="font-weight: 900; font-size: 3rem; margin: 0rem">
216
- Transcriptomic Mapping of the 5-HT Receptor Landscape
217
- </h1>
218
- <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
219
- Roberto De Filippo <sup>#</sup>, Dietmar Schmitz
220
- </h2>
221
- <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
222
- <sup>#</sup>Corresponding author
223
- </h2>
224
- <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
225
- [<a href="https://github.com/RobertoDF/Transcriptomics-5-HT" style="color:blue;">Article</a>]
226
- [<a href="https://github.com/RobertoDF/Transcriptomics-5-HT" style="color:blue;">Github</a>]
227
- </h2>
228
- <h2 style="font-weight: 450; font-size: 1rem;">
229
- Custom visualizer for RNA-seq [<a href="https://www.nature.com/articles/s41586-023-06812-z" style="color:blue;">Yao et al., 2023</a>] and MERFISH datasets [<a href="https://www.nature.com/articles/s41586-023-06808-9" style="color:blue;">Zhang et al., 2023</a>] </h2>
230
- <h2 style="font-weight: 450; font-size: 1rem;">
231
- By <b>Roberto De Filippo</b>
232
- </h2>
233
- </div>
234
- """
235
 
236
- # Create a Panel HTML pane with the custom title
237
- custom_title_pane = pn.pane.HTML(custom_title_html, sizing_mode='stretch_width')
238
-
239
- dashboard_spatial = pn.Column(custom_title_pane, viz.control_panel, viz.plot_expr_across_slices, viz.plot_bar, viz.plot_section)
240
 
241
 
242
  def plot_class_expression_split_by_categories(subfig, cls, df_subset, gene):
@@ -512,12 +485,42 @@ dashboard_region_centric_dashboard = pn.Column(
512
  heatmap_region_centric
513
  )
514
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
  title = "5-HT Transcriptomic Landscape"
516
  dashboard = pn.template.BootstrapTemplate(
517
  header_background="#F9B9B7",
518
  logo="https://upload.wikimedia.org/wikipedia/commons/5/51/Logo_Charite.svg",
519
  title="5-HT Transcriptomics",
520
- main=pn.Column(
521
  pn.Tabs(
522
  ("Spatial MERFISH (MERFISH)", dashboard_spatial),
523
  ("Gene by class/subclass/supertype/cluster (RNA-seq)", dashboard_cluster_centric),
 
208
  viz = MERFISH_viz(merfish_data, datasets[0], merfish_data[datasets[0]]["class"].unique(),
209
  merfish_data[dataset]["subclass"].unique(), 0)
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
 
212
+ dashboard_spatial = pn.Column( viz.control_panel, viz.plot_expr_across_slices, viz.plot_bar, viz.plot_section)
 
 
 
213
 
214
 
215
  def plot_class_expression_split_by_categories(subfig, cls, df_subset, gene):
 
485
  heatmap_region_centric
486
  )
487
 
488
+
489
+
490
+ # Title of the paper and authors
491
+ # Custom HTML for the title
492
+ custom_title_html = """
493
+ <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
494
+ <h1 style="font-weight: 900; font-size: 3rem; margin: 0rem">
495
+ Transcriptomic Mapping of the 5-HT Receptor Landscape
496
+ </h1>
497
+ <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
498
+ Roberto De Filippo <sup>#</sup>, Dietmar Schmitz
499
+ </h2>
500
+ <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
501
+ <sup>#</sup>Corresponding author
502
+ </h2>
503
+ <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem">
504
+ [<a href="https://github.com/RobertoDF/Transcriptomics-5-HT" style="color:blue;">Article</a>]
505
+ [<a href="https://github.com/RobertoDF/Transcriptomics-5-HT" style="color:blue;">Github</a>]
506
+ </h2>
507
+ <h2 style="font-weight: 450; font-size: 1rem;">
508
+ Custom visualizer for RNA-seq [<a href="https://www.nature.com/articles/s41586-023-06812-z" style="color:blue;">Yao et al., 2023</a>] and MERFISH datasets [<a href="https://www.nature.com/articles/s41586-023-06808-9" style="color:blue;">Zhang et al., 2023</a>] </h2>
509
+ <h2 style="font-weight: 450; font-size: 1rem;">
510
+ By <b>Roberto De Filippo</b>
511
+ </h2>
512
+ </div>
513
+ """
514
+
515
+ # Create a Panel HTML pane with the custom title
516
+ custom_title_pane = pn.pane.HTML(custom_title_html, sizing_mode='stretch_width')
517
+
518
  title = "5-HT Transcriptomic Landscape"
519
  dashboard = pn.template.BootstrapTemplate(
520
  header_background="#F9B9B7",
521
  logo="https://upload.wikimedia.org/wikipedia/commons/5/51/Logo_Charite.svg",
522
  title="5-HT Transcriptomics",
523
+ main=pn.Column(custom_title_pane,
524
  pn.Tabs(
525
  ("Spatial MERFISH (MERFISH)", dashboard_spatial),
526
  ("Gene by class/subclass/supertype/cluster (RNA-seq)", dashboard_cluster_centric),