Bio::Graphics::Browser2::DataSource(3pm) | User Contributed Perl Documentation | Bio::Graphics::Browser2::DataSource(3pm) |
Bio::Graphics::Browser2::DataSource -- DataSource to access data
$path = $source->userdata(@path_components) Returns a path to somewhere in the tmp file system for the indicated userdata.
$setting = $source->global_setting('option')
Like code_setting() except that it is only for 'general' options. If the option is not found in the datasource config file, then looks in the global file.
Returns "open" "closed" or "off" for the named section. Named sections are:
instructions search overview details tracks display upload_tracks
This is called at initialization time to add track configs for the automatic "scale" (arrow) tracks for details, overview and regionview
($url,$path) = generate_image($gd);
Given a GD::Image object, this method calls its png() or gif() methods (depending on GD version), stores the output into the temporary "images" subdirectory of the directory given by the "tmp_base" option in the configuration file. It returns a two element list consisting of the URL to the image and the physical path of the image.
This adds a new method called gbrowse_dbid() to a feature. Do not call it if the method is already in the feature's class. The hashref should be populated by feature memory locations (overload::StrVal($feature)) as keys and database symbolic IDs as values.
Search through all stanzas for those with a matching "data source" option. Data sources look like this:
[stanzaLabel1] data source = FlyBase [stanzaLabel2] data source = FlyBase
Now searching for $source->data_source_to_label('FlyBase') will return "stanzaLabel1" and "stanzaLabel2" along with others that match. A track may have several data sources, separated by spaces.
Search through all stanzas for those with a matching "track source" option. Track sources look like this:
[stanzaLabel] track source = UCSC EBI NCBI
Now searching for $source->track_source_to_label('UCSC','EBI') will return "stanzaLabel" along with others that match. A track may have several space-delimited track sources.
Given a track label and length (for semantic zooming) return true if we should generate an inline clickable imagemap vs one in which the actions are generated by Ajax callbacks
2020-02-16 | perl v5.30.0 |