On Thu, Oct 07, 2010 at 03:42:59PM -0600, Zhe Chen wrote:
On the site: http://genome.ucsc.edu/cgi-bin/hgTables, when I click "Send to Galaxy" button. It will redirect to Galaxy main page after running the tool. How is it implemented?
It is related to the tool (Get Data)->(UCSC main).
On the UCSC side this is implemented in hg/hgTables/galaxy.c, which generates a form that posts to tool_runner with a certain tool_id. On the Galaxy side, tool_runner recognizes this id, and delegates to the tool defined in tools/data_source/ucsc_tablebrowser.xml The tool is run (which in the background goes back to UCSC and fetches the data) and Galaxy returns a page to the user. If the returned page is loaded but not inside the Galaxy interface (e.g. if the process was started from the UCSC side), then javascript it used to reload with the Galaxy interface.