Class FeatureTrack
Defined in: FeatureTrack.js.
Constructor Attributes | Constructor Name and Description |
---|---|
FeatureTrack(config, refSeq, browserParams)
|
Method Attributes | Method Name and Description |
---|---|
cleanupBlock(block)
|
|
endZoom(destScale, destBlockBases)
|
|
evalHook(hook)
|
|
featureUrl(feature)
|
|
fillBlock(blockIndex, block, leftBlock, rightBlock, leftBase, rightBase, scale, stripeWidth, containerStart, containerEnd)
|
|
fillFeatures(blockIndex, block, leftBlock, rightBlock, leftBase, rightBase, scale, containerStart, containerEnd)
|
|
fillHist(blockIndex, block, leftBase, rightBase, stripeWidth)
|
|
loadSuccess(trackInfo, url)
|
|
makeHistogramYScale(blockSizeBp)
Creates a Y-axis scale for the feature histogram.
|
|
renderFeature(feature, uniqueId, block, scale, containerStart, containerEnd)
|
|
renderSubfeature(feature, featDiv, subfeature, displayStart, displayEnd)
|
|
setViewInfo(genomeView, numBlocks, trackDiv, labelDiv, widthPct, widthPx, scale)
|
|
transfer(sourceBlock, destBlock, scale, containerStart, containerEnd)
Called when sourceBlock gets deleted.
|
|
updateViewDimensions(coords)
|
|
wrapHandler(handler)
Make life easier for event handlers by handing them some things
|
Method Detail
cleanupBlock(block)
- Parameters:
- block
endZoom(destScale, destBlockBases)
- Parameters:
- destScale
- destBlockBases
evalHook(hook)
- Parameters:
- hook
featureUrl(feature)
- Parameters:
- feature
fillBlock(blockIndex, block, leftBlock, rightBlock, leftBase, rightBase, scale, stripeWidth, containerStart, containerEnd)
- Parameters:
- blockIndex
- block
- leftBlock
- rightBlock
- leftBase
- rightBase
- scale
- stripeWidth
- containerStart
- containerEnd
fillFeatures(blockIndex, block, leftBlock, rightBlock, leftBase, rightBase, scale, containerStart, containerEnd)
- Parameters:
- blockIndex
- block
- leftBlock
- rightBlock
- leftBase
- rightBase
- scale
- containerStart
- containerEnd
fillHist(blockIndex, block, leftBase, rightBase, stripeWidth)
- Parameters:
- blockIndex
- block
- leftBase
- rightBase
- stripeWidth
loadSuccess(trackInfo, url)
- Parameters:
- trackInfo
- url
makeHistogramYScale(blockSizeBp)
Creates a Y-axis scale for the feature histogram. Must be run after
the histogram bars are drawn, because it sometimes must use the
track height to calculate the max value if there are no explicit
histogram stats.
- Parameters:
- {Number} blockSizeBp
- the size of the blocks in base pairs. Necessary for calculating histogram stats.
measureStyles()
renderFeature(feature, uniqueId, block, scale, containerStart, containerEnd)
- Parameters:
- feature
- uniqueId
- block
- scale
- containerStart
- containerEnd
renderSubfeature(feature, featDiv, subfeature, displayStart, displayEnd)
- Parameters:
- feature
- featDiv
- subfeature
- displayStart
- displayEnd
setViewInfo(genomeView, numBlocks, trackDiv, labelDiv, widthPct, widthPx, scale)
- Parameters:
- genomeView
- numBlocks
- trackDiv
- labelDiv
- widthPct
- widthPx
- scale
transfer(sourceBlock, destBlock, scale, containerStart, containerEnd)
Called when sourceBlock gets deleted. Any child features of
sourceBlock that extend onto destBlock should get moved onto
destBlock.
- Parameters:
- sourceBlock
- destBlock
- scale
- containerStart
- containerEnd
updateViewDimensions(coords)
- Parameters:
- coords
wrapHandler(handler)
Make life easier for event handlers by handing them some things
- Parameters:
- handler