CTD2-Dashboard MRA View Development
From Informatics
new modules
1. MasterRegulator.java: a class which stores the result of master regulator analysis.
2. MraTargetBarcode.java: a class which stores MRA barcode data.
3. MraController.java: a class which will perform the following function:
1) accept a request with type "mra" from web client. 2) if the request parameter "dataType" is "mra", it will read related data from a specified file from a given url and parse them to MasterRegulator object. 3) if the request parameter "dataType" is "cytoscape", it will read related data from a specified file from a given url and parse them to CyNetwork object. 3) if the request parameter "dataType" is "throttle", it will read related data from a specified file from a given url and identify a proper throttle value for cytoscape to display a safe number of nodes. 4) send a response with json format data back to web client.
changed modules
1. CyElement.java: add the following attributes for displaying MRA cytoscape view
public static final String SHAPE = "shape"; public static final String WEIGHT = "weight"; public static final String COLOR = "color";
2. ctd2.js
This java script file is changed to define a new backbone route "evidence/:id" and function "showMraView" to map the particular route to MRA view. Also three backbone views are also added: var MraView = Backbone.View.extend({...}) var MraViewRowView = Backbone.View.extend({...}) var MraBarcodeRowView = Backbone.View.extend({...})
3. index.jsp
This jsp page is changed to define three more templates in order to display MRA view: mra-view-tmpl, mra-view-row-tmpl, mra-barcode-view-row-tmpl
Test Link
Currently You can test the main page from
http://156.145.28.209:8080/ctd2-dashboard/
And test the "MRA" data display from
http://156.145.28.209:8080/ctd2-dashboard/#/observation/1716236