Submit a Pull Request to Galaxy
With your visualization published to npm
, the next step is to submit a pull request to the Galaxy development repository. This pull request should include your XML wrapper file and, optionally, a logo file in svg
format.
Note: Replace MY_VISUALIZATION
with your visualization name in the following instructions.
Step 1: Fork and Clone the Galaxy Repository
Fork the Galaxy repository available at Galaxy Project on GitHub and clone it to your local machine.
Step 2: Create a Branch for Your Visualization
Create a new branch specifically for your visualization:
git branch MY_VISUALIZATION
git checkout MY_VISUALIZATION
Step 3: Set Up Your Visualization Directory
Create a directory for your visualization in the Galaxy repository at
config/plugins/visualizations/MY_VISUALIZATION
.Copy the XML file (
MY_VISUALIZATION.xml
) generated during development into a subdirectory named config:
config/plugins/visualizations/MY_VISUALIZATION/config/MY_VISUALIZATION.xml
Step 4: Verify XML Requirements and Data Sources
- Ensure the
requirements
section in your XML file specifies the correctnpm
package name and version. - Confirm the
data_sources
section in the XML lists the appropriate datatype extension(s) compatible with your visualization.
Step 5: Add an Optional Logo
Optionally, include a logo file (logo.svg) for your visualization by placing it in a static subdirectory:
config/plugins/visualizations/MY_VISUALIZATION/static/logo.svg
Step 6: Update the Gulpfile
In the Galaxy root directory, open client/gulpfile.js
and add the name of your visualization to the INSTALL_PLUGIN_BUILD_IDS
list.
Step 7: Run Galaxy and Test Your Visualization
Start Galaxy by running the following command:
bash./run.sh
Upload a test file to your Galaxy history, ensuring it has the correct data type for your visualization.
Open your visualization from the Activity Bar to view and test your uploaded dataset.
🎉 Thank you for your contribution!
Following these steps will prepare your visualization for integration with Galaxy. Once everything is set up, you can submit your pull request.