Class JBrowse.Model.TrackMetaData
Defined in: TrackMetaData.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Data store for track metadata, supporting faceted
(parameterized) searching.
|
Method Attributes | Method Name and Description |
---|---|
close()
|
|
containsValue(item, attribute, value)
|
|
getAttributes(item)
|
|
getCount()
Get the number of items that matched the most recent query.
|
|
getFacetCounts(facetName)
|
|
getFacetNames(callback)
Get an array of the text names of the facets that are defined
in this track metadata.
|
|
getFacetStats(facetName)
Get statistics about the facet with the given name.
|
|
getFacetValues(facetName)
Get an Array of the distinct values for a given facet name.
|
|
getIdentity(i)
|
|
getLabel(i)
|
|
getValue(i, attr, defaultValue)
|
|
getValues(i, attr)
|
|
hasAttribute(item, attr)
|
|
isItem(item)
|
|
loadItem(args)
|
|
Event hook called after a fetch has been successfully completed
on this store.
|
|
onReady(scope, func)
|
Class Detail
JBrowse.Model.TrackMetaData()
Data store for track metadata, supporting faceted
(parameterized) searching. Keeps all of the track metadata,
and the indexes thereof, in memory.
- Parameters:
- args.trackConfigs
- {Array} array of track configuration
- args.indexFacets
- {Function|Array|String}
- args.onReady
- {Function}
- args.metadataStores
- {Array[dojox.data]}
Method Detail
close()
containsValue(item, attribute, value)
- Parameters:
- item
- attribute
- value
fetchItemByIdentity(id)
- Parameters:
- id
getAttributes(item)
- Parameters:
- item
{Number}
getCount()
Get the number of items that matched the most recent query.
- Returns:
- {Number} the item count, or undefined if there has not been any query so far.
{Object}
getFacetCounts(facetName)
- Parameters:
- facetName
- {String} facet name
- Returns:
- {Object}
getFacetNames(callback)
Get an array of the text names of the facets that are defined
in this track metadata.
- Parameters:
- callback
- {Function} called as callback( [facet,facet,...] )
{Object}
getFacetStats(facetName)
Get statistics about the facet with the given name.
- Parameters:
- facetName
- Returns:
- {Object} as:
{ itemCount: ##, bucketCount: ##, avgBucketSize: ## }
{Array}
getFacetValues(facetName)
Get an Array of the distinct values for a given facet name.
- Parameters:
- facetName
- {String} the facet name
- Returns:
- {Array} distinct values for that facet
getFeatures()
getIdentity(i)
- Parameters:
- i
getIdentityAttributes()
getLabel(i)
- Parameters:
- i
getLabelAttributes(i)
- Parameters:
- i
getValue(i, attr, defaultValue)
- Parameters:
- i
- attr
- defaultValue
getValues(i, attr)
- Parameters:
- i
- attr
hasAttribute(item, attr)
- Parameters:
- item
- attr
isItem(item)
- Parameters:
- item
isItemLoaded()
loadItem(args)
- Parameters:
- args
onFetchSuccess()
Event hook called after a fetch has been successfully completed
on this store.
onReady(scope, func)
- Parameters:
- scope
- func