|
30 | 30 | " ViewType as vt,\n", |
31 | 31 | " CoordinationType as ct,\n", |
32 | 32 | " CoordinationLevel as CL,\n", |
| 33 | + " hconcat,\n", |
| 34 | + " vconcat,\n", |
33 | 35 | ")\n", |
34 | 36 | "from vitessce.widget_plugins import SpatialQueryPlugin" |
35 | 37 | ] |
|
60 | 62 | " os.makedirs(join(\"data\"), exist_ok=True)\n", |
61 | 63 | " if not isdir(join(\"data\", \"HBM987_KWLK_254\")):\n", |
62 | 64 | " os.makedirs(join(\"data\", \"HBM987_KWLK_254\"), exist_ok=True)\n", |
63 | | - " urlretrieve('https://assets.hubmapconsortium.org/0a21f3fa27109790483f2a0729be53de/secondary_analysis.h5ad', adata_path)" |
| 65 | + " if not isfile(adata_path):\n", |
| 66 | + " urlretrieve('https://assets.hubmapconsortium.org/0a21f3fa27109790483f2a0729be53de/secondary_analysis.h5ad', adata_path)" |
64 | 67 | ] |
65 | 68 | }, |
66 | 69 | { |
|
115 | 118 | "sets_view = vc.add_view(\"obsSets\", dataset=dataset)\n", |
116 | 119 | "features_view = vc.add_view(\"featureList\", dataset=dataset)\n", |
117 | 120 | "sq_view = vc.add_view(\"spatialQuery\", dataset=dataset)\n", |
| 121 | + "sq_heatmap = vc.add_view(\"spatialQueryHeatmap\", dataset=dataset)\n", |
| 122 | + "\n", |
118 | 123 | "\n", |
119 | 124 | "obs_set_selection_scope, = vc.add_coordination(\"obsSetSelection\",)\n", |
120 | 125 | "obs_set_selection_scope.set_value(None)\n", |
|
137 | 142 | " ])\n", |
138 | 143 | "})\n", |
139 | 144 | "\n", |
140 | | - "vc.layout((spatial_view | (lc_view / features_view)) / (sets_view | sq_view));" |
| 145 | + "vc.layout((spatial_view | (lc_view / features_view)) / hconcat(sets_view, sq_heatmap, sq_view, split=[1, 1, 1]));" |
141 | 146 | ] |
142 | 147 | }, |
143 | 148 | { |
|
0 commit comments