Question: Is it possible to add custom JavaScript tool in Galaxy
0
gravatar for JameB11
20 months ago by
JameB110
JameB110 wrote:

I'm looking into adding a custom tool into Galaxy that makes a HTTP request to an API end point, parses the response , and dynamically generates a form for the user. I want to do this using JavaScript and not serverside scripting languages like Python or Perl.

Is this something that could be done? I looked at the Add Custom Tool page, but it only talks about Perl/Python scripts. The front-end that user interacts with has to be defined using XML file ... I want to instead give my own HTML+CSS+JS file.

The form I'm generating dynamically allows users to generate data which can be used for further analysis. While I can't tell you exactly what it is (yet), a pseudo workflow could be:

  1. User comes on custom Galaxy instance
  2. Acquires data using the custom tool.
  3. The tool acquires form structure from the API
  4. Generates some genomic data, Galaxy would keep this in history
  5. User can perform some other analysis using the output in (4) ... i.e. say compute GC content, as a basic example.
galaxy • 737 views
ADD COMMENTlink modified 20 months ago by Martin Čech ♦♦ 4.9k • written 20 months ago by JameB110

Hi, I am trying to implement a similar thing and looking for some answers. Did you manage to make it work?

ADD REPLYlink written 16 months ago by aman54kumar0
1
gravatar for Martin Čech
20 months ago by
Martin Čech ♦♦ 4.9k
United States
Martin Čech ♦♦ 4.9k wrote:

Two things come to my mind when adding custom frontend JS to Galaxy, none of them are tools per se though.

Galaxy does not support normal tools written in javascript. Most tools are resource-intensive and wouldn't run well in browser. Moreover trying to load from a different domain's API through browser will trigger the same-origin security policy and browser would prevent that request.

ADD COMMENTlink written 20 months ago by Martin Čech ♦♦ 4.9k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 180 users visited in the last hour