GBrows...figData(3pm)
π NAME π
GBrowse::ConfigData β bestie, it's the configuration for the GBrowse module π
So like, this is GBrowse::ConfigData(3pm) from the User Contributed Perl Documentation, and it's literally the little vault where all of GBrowse's config lives. β¨
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, no cap:
use GBrowse::ConfigData;
$value = GBrowse::ConfigData->config('foo');
$value = GBrowse::ConfigData->feature('bar');
@names = GBrowse::ConfigData->config_names;
@names = GBrowse::ConfigData->feature_names;
GBrowse::ConfigData->set_config(foo => $new_value);
GBrowse::ConfigData->set_feature(bar => $new_value);
GBrowse::ConfigData->write; # Save changes
get it, set it, save it, slay. π«Ά
π¦ DESCRIPTION π¦
This module holds the configuration data for the GBrowse module. It also provides a programmatic interface for getting or setting that configuration data.
β οΈ but like, real talk bestie β to actually make changes you have to have write access to the GBrowse::ConfigData module, and you should attempt to understand the repercussions of your actions. that's the original's words and honestly? they're giving ominous older-sibling energy. π
π METHODS π
config($name)
Give it a string argument and it returns the value of the configuration item with that name. If no such item exists, you get undef. π
feature($name)
Give it a string argument and it returns the value of the feature with that name. No such feature? undef, sorry babe. π
set_config($name, $value)
Sets the configuration item with the given name to the given value. The value can be any Perl scalar that will serialize correctly using Data::Dumper. That includes references, objects (usually), and complex data structures. It probably does not include transient things like filehandles or sockets. β so don't even try it with a socket, it's not gonna go how you think.
set_feature($name, $value)
Sets the feature with the given name to the given boolean value. The value gets converted to 0 or 1 automatically β it's giving binary, it's giving boolean, it's giving decided. π
config_names()
Returns a list of all the names of config items currently defined in GBrowse::ConfigData β or, in scalar context, the number of items. π’
feature_names()
Returns a list of all the names of features currently defined in GBrowse::ConfigData β or, in scalar context, the number of features. π’
auto_feature_names()
Returns a list of all the names of features whose availability is dynamically determined β or, in scalar context, the number of such features.
π¨ important caveat: this does not include such features that have later been set to a fixed value. once you pin it down, it's out of the auto list. periodt.
write()
Commits any changes from set_config() and set_feature() to disk. Requires write access to the GBrowse::ConfigData module. this is the "hit save" button of the whole operation, bestie. π₯
π AUTHOR π
GBrowse::ConfigData was automatically created using Module::Build. Module::Build was written by Ken Williams, but he holds no authorship claim or copyright claim to the contents of GBrowse::ConfigData.
so like, the scaffolding is his, the contents are not β got it? iconic of him honestly. π
and that's the whole page, bestie π¦β¨ this was perl v5.40.0, dated 2024-10-20, and you read it in GBrowse::ConfigData(3pm). mwah, go forth and configure responsibly ππ
π¦ where this page comes from
- ubuntu questing: gbrowse 2.56+dfsg-12build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms