Skip to content

Commit

Permalink
Merge pull request #19061 from davelopez/add_vizarr_visualization
Browse files Browse the repository at this point in the history
Add Vizarr visualization
  • Loading branch information
guerler authored Nov 13, 2024
2 parents 1b11742 + 66e35b9 commit 07290ad
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const STATIC_PLUGIN_BUILD_IDS = [
"ts_visjs",
"venn",
];
const INSTALL_PLUGIN_BUILD_IDS = ["ngl", "msa", "openlayers"]; // todo: derive from XML
const INSTALL_PLUGIN_BUILD_IDS = ["ngl", "msa", "openlayers", "vizarr"]; // todo: derive from XML
const DIST_PLUGIN_BUILD_IDS = ["new_user"];
const PLUGIN_BUILD_IDS = Array.prototype.concat(DIST_PLUGIN_BUILD_IDS, STATIC_PLUGIN_BUILD_IDS);

Expand Down
22 changes: 22 additions & 0 deletions config/plugins/visualizations/vizarr/config/vizarr.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Vizarr Viewer">
<description>Basic visualization for Zarr-based images like OME-Zarr</description>
<requirements>
<requirement type="npm" version="0.1.4" package="@galaxyproject/vizarr"/>
</requirements>
<entry_point entry_point_type="script" src="dist/index.js" css="dist/index.css" />
<data_sources>
<data_source>
<model_class>HistoryDatasetAssociation</model_class>

<test type="isinstance" test_attr="datatype" result_type="datatype" allow_uri_if_protocol="https,http">data.ZarrDirectory</test>
<test type="isinstance" test_attr="datatype" result_type="datatype" allow_uri_if_protocol="https,http">images.OMEZarr</test>

<to_param param_attr="id">dataset_id</to_param>
</data_source>
</data_sources>
<params>
<param type="dataset" var_name_in_template="hda" required="true">dataset_id</param>
</params>
</visualization>
36 changes: 36 additions & 0 deletions config/plugins/visualizations/vizarr/static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 07290ad

Please sign in to comment.