Skip to content

Domain objects

Jim Robinson edited this page Sep 27, 2018 · 6 revisions

Tracks

required methods

  • getFeatures(chr, bpStart, bpEnd)
  • draw (options)
  • computePixelHeight (features)

optional methods

  • menuItemList(popover)
  • popupDataWithConfiguration (config)
  • popupMenuItemList (config)
  • altClick (genomicLocation, referenceFrame, event)
  • postInit() -- return a promise resolved to self

new track pattern (if you want to inherit from TrackBase)

Feature Source

FeatureTracks use a "FeatureSource" object to fetch features as required.

required methods

  • getFeatures (chr, bpStart, bpEnd, bpPerPixel, windowFunction)

optional methods

  • getFileHeader()

Bam Reader

Used by a "BamSource".

required methods

  • readAlignments(chr, start, end)