Class Index | File Index

Classes


Class FeatureTrack


Defined in: FeatureTrack.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
FeatureTrack(config, refSeq, browserParams)
Method Summary
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)
 
load()
Request that the track load its data.
 
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.
 
 
 
wrapHandler(handler)
Make life easier for event handlers by handing them some things
Class Detail
FeatureTrack(config, refSeq, browserParams)
Parameters:
config
refSeq
browserParams
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

load()
Request that the track load its data. The track will call its own loadSuccess() function when it is loaded.

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

updateFeatureLabelPositions(coords)
Parameters:
coords

updateStaticElements(coords)
Parameters:
coords

wrapHandler(handler)
Make life easier for event handlers by handing them some things
Parameters:
handler

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 14 2012 17:43:45 GMT-0400 (EDT)