Difference between revisions of "Extending Embedding and Customizing JBrowse"

From GMOD
Jump to: navigation, search
Line 9: Line 9:
 
* namespace CSS
 
* namespace CSS
 
* putting track list into separate DOM element (e.g., Drupal "block")
 
* putting track list into separate DOM element (e.g., Drupal "block")
* Browser API: anything you can do manually
+
* "Browser" API: anything you can do manually
  
 
* Hooks:
 
* Hooks:
Line 33: Line 33:
 
  changing to: getAttr
 
  changing to: getAttr
  
ends block
+
** access to region selections (e.g., for creation of lists of features)
 +
** function that: takes currently visible sequence, PSSM or set of regexes, returns: set of regions

Revision as of 20:14, 7 March 2011

Result of discussions at GMOD satellite meeting, March 2011

Potential upcoming changes to JSON format:

http://biowiki.org/view/JBrowse/JsonFormatStabilization

TODO/wishlist for JBrowse:

  • namespace CSS
  • putting track list into separate DOM element (e.g., Drupal "block")
  • "Browser" API: anything you can do manually
  • Hooks:
    • featureCreate: has access to: feature data, feature HTML element, can:
      • style the element, and
      • add callbacks to the element
    • featureEventHooks:
{ click: function(feature array, HTML element, getAttr, event)
 mouseover: function(...
 mouseout: ...
 [DOM event name]: [callback function]
}
current approach:
fields:
{ "start": 1,
  "end": 2,
  "strand": 3,
  ...
}
changing to: getAttr
    • access to region selections (e.g., for creation of lists of features)
    • function that: takes currently visible sequence, PSSM or set of regexes, returns: set of regions