Bio::D...egistry(3pm)
π Bio::DB::Registry β the vibe β¨
okay bestie, so this is the manual page for Bio::DB::Registry (shipped as Bio::D...egistry(3pm), part of the User Contributed Perl Documentation, iykyk) and it's genuinely iconic. it's your all-access pass to the Open Bio Database Access registry scheme. let's get into it π«Ά
πΈ NAME πΈ
Bio::DB::Registry β access to the Open Bio Database Access registry scheme. periodt. π
β¨ SYNOPSIS β¨
use Bio::DB::Registry();
$registry = Bio::DB::Registry->new();
@available_services = $registry->services;
$db = $registry->get_database('embl');
# $db is a Bio::DB::SeqI implementing class
$seq = $db->get_Seq_by_acc("J02231");
like... four lines and you're pulling sequences. main character energy fr fr ππ
π¦ DESCRIPTION π¦
so this module gives you access to the Open Bio Database Access (OBDA) scheme, which is basically the one single cross-language and cross-platform spec for how to get to databases. no cap. and these databases are a whole rainbow of possibilities: they might be reachable through the Web, they might be BioSQL databases, or they might be local, indexed flatfile databases. all valid, all welcome. π
here's the tea about setup though. if you (or your system administrator) have not installed the default init file, seqdatabase.ini, in /etc/bioinformatics or ${HOME}/.bioinformatics, then creating the first Registry object just... copies the default settings from www.open-bio.org. she's resourceful. π
and the Registry object will then attempt to store those settings in a brand new file, ${HOME}/.bioinformatics/seqdatabase.ini. cute of her.
you can also specify one or more custom locations for the init file by setting $OBDA_SEARCH_PATH to those directories β and if you've got multiple directories, separate them with ';'. (yes, a semicolon. that's the divider. don't ask, just do it π« )
please see the OBDA Access HOWTO for more info: <http://bioperl.org/howtos/OBDA_HOWTO.html> π
π Support π
bestie, if you have usage questions or support issues, direct them to the mailing list:
bioperl-l@bioperl.org
and not to the module maintainer directly, okay? there are so many experienced and responsive experts on there who can look at your problem and quickly address it. the way that works is honestly so slay. π
and if at all possible, please include a thorough description of the problem with code and data examples. give them the whole picture, they deserve it. π
π Reporting Bugs π
found a bug? report it to the Bioperl bug tracking system so they can keep track of the bugs and their resolution β both, together, as a couple. π
bug reports can be submitted via the web at:
https://github.com/bioperl/bioperl-live/issues
go off, tell them everything. π«Ά
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ (a lil underscore, like a secret handshake π€«).
π§ _load_registry
- Title:
_load_registry - Usage: (none given)
- Function: looks for
seqdatabase.inifiles in the expected locations and in the directories specified by$OBDA_SEARCH_PATH. if no files are found, download a default file fromwww.open-bio.org - Returns: nothing
- Args: none
π get_database
- Title:
get_database - Usage:
my $db = $registry->get_database($dbname); - Function: retrieve a Database object which implements the
Bio::DB::SeqIinterface - Returns:
Bio::DB::SeqIobject - Args: string describing the name of the database
β services
- Title:
services - Usage:
my @available = $registry->services(); - Function: returns list of possible services
- Returns: list of strings
- Args: none
π _get_ini_files
- Title:
_get_ini_files - Usage:
my @files = $self->_get_ini_files - Function: to find all the
seqdatabase.inifiles - Returns: list of
seqdatabase.inipaths - Args: none
π _make_private_registry
- Title:
_make_private_registry - Usage: (none given)
- Function: make private registry in file in
$HOME - Returns: path to private registry file
- Args: none
ngl bestie, if you're ever unsure about a method, just check whether it starts with _ β if it does, it's internal and you're technically peeking behind the curtain. π still useful to know though.
and that's the whole page, bestie! πΈ this was perl v5.32.1, dated 2021-08-15, and it's Bio::D...egistry(3pm) β the User Contributed Perl Documentation. thanks for reading all the way to the end, you're literally the best. mwah πβ¨π¦π
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms