Changes between Version 5 and Version 6 of DAS


Ignore:
Timestamp:
2011-02-01T10:41:33+01:00 (14 years ago)
Author:
jvelde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DAS

    v5 v6  
    5353
    5454The last two can be done by eg. IFRAMing an existing client and entering our application URL to the list of sources, making use of existing software and source listings.
     55
     56=== Older explanation, more technical, outdated locations ===
     57
     58In short:
     59
     601) Template/example servlet for DAS data in XGAP
     612) Connecting the servlet to a DAS client
     623) Querying XGAP data within the servlet
     634) The data mapping possibilities
     645) Constructing the complete servlet
     656) The visualization tool we want to integrate
     66
     67
     68In long:
     69
     70
     711)
     72In the xgap_1_3_distro project, go to:
     73handwritten -> java -> mydas -> DasServlet.java
     74
     75We set the MIME type to indicate what we are serving:
     76response.setContentType("application/x-das-features+xml");
     77
     78After that we print data to the output stream:
     79printExample(out);
     80
     81This servlet is mapped to the URL '/xgap_1_3_distro/das', see:
     82WebContent/WEB-INF/web.xml
     83
     84Later on you can parse variables to the servlet like this:
     85URL: xgap_1_3_distro/atted?locus=At4g08470
     86String gene = req.getString("locus");
     87
     88For an advanced example, see:
     89handwritten -> java -> plugins -> matrixmanager ->
     90MatrixManagerDownloadServlet.java
     91
     92
     932)
     94Go to the Ensembl genome browser:
     95http://www.ensembl.org/index.html
     96
     97To enter the view, select an organism, eg 'Human'
     98
     99Now select:
     100Manage your data -> Custom data -> Attach DAS
     101
     102In the box behind "or other DAS server", input the URL with your IP
     103instead of 'localhost', ie.
     104http://145.39.234.55:8080/xgap_1_3_distro/das
     105
     106
     1073)
     108XGAP should now serve some example data that can be interpreted by the
     109Ensembl DAS client :) I will test this tomorrow, here at the UMCG the
     110firewalls prevent external computers to reach my IP.
     111
     112If you look at bit closer at the MatrixManager servlet you notice we
     113instantiate the database:
     114db = (JDBCDatabase) this.getDatabase();
     115
     116After which we can run queries using find, eg. this retrieves all
     117markers in the database:
     118db.find(Marker.class);
     119
     120
     1214)
     122Now the idea is to take a close look at the DAS specifications: (I
     123also took the example data from here)
     124http://www.biodas.org/documents/das2/das2_get.html
     125
     126And identify which parts of DAS and XGAP overlap. (XGAP datamodel
     127basics: http://www.xgap.org/wiki/XgapDataModel)
     128
     129
     1305)
     131After we know what to serve out, we can build the servlet. I think it
     132should look like this:
     133
     134- Depending on arguments, query a part of the current XGAP database
     135(eg. marker positions and QTL peak data)
     136- Using the mydas-1.6.0 library:
     137- Construct DAS objects from the queried XGAP objects
     138- Create DAS xml format from these objects and serve out
     139
     140
     1416)
     142That would already be great. Next we can look at different viewers and
     143how to integrate them into an XGAP plugin. Tampering with Freemarker
     144templates can be very tedious so if you have a nice idea I can work
     145this out.
     146
     147A customizable viewer that we should possibly use is Gbrowse:
     148http://gmod.org/wiki/GBrowse
     149
     150And then we can let biologists drool over pictures such as these :)
     151http://gmod.org/w/images/b/b6/Gbrowse_screenshot1.gif