Thank you for the replies,I am new to galaxy. I have anXML file and I need to visualise it. But in order to get data out of it, I need to use java library to extract data. I cannot extract all the data in one go.
For example, if user click on "Customers" button, I need to send a AJAX call to a controller then controller should call java library and read xml file and send data(Customers list). If user click on a particular Customer, I need to again go a GET request via AJAX..... and call java library again and get "Orders ".
my XML file is special type of XML(mzIdentML).
galaxy -> lib -> galaxy -> datatypes -> proteomics.py has following code:
class MzIdentML(ProteomicsXml):
file_ext = "mzid"
edam_format = "format_3247"
blurb = "XML identified peptides and proteins."
root = "MzIdentML"
galaxy -> lib -> galaxy -> datatypes -> dataproviders -> dataset.py I dont find any code related to mzIdentML here.
So do you say class MzIdentML(ProteomicsXml) is my model class and in dataset.py, I need to write a controller class (let's say mzIdentMLDataProvider) to communicate with java library to fetch data from mzIdentML file? So my AJAX should call to mzIdentMLDataProvider some function (let's say "getCustomers") which calls to my java library somehow. am I correct?
Have you seen https://wiki.galaxyproject.org/Develop/Visualizations and https://wiki.galaxyproject.org/VisualizationsRegistry ?
Hi, I have seen then and built simple plugin according to that. In order to have a controller class, do I need to setup production server? but still, I am confused, where to write controller?
I think the purpose of the plugin system is to avoid the need of writing custom Galaxy controllers. You should be able to write a viz plugin by using DataProviders and the existing API - some details here: https://wiki.galaxyproject.org/VisualizationsRegistry/Code
If you are unable to write what you want that way maybe you do not want to write a plugin but rather a custom version of Galaxy. In that case you can find the API controllers here: https://github.com/galaxyproject/galaxy/tree/dev/lib/galaxy/webapps/galaxy/api