Bio::D...egistry(3pm)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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.ini files in the expected locations and in the directories specified by $OBDA_SEARCH_PATH. if no files are found, download a default file from www.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::SeqI interface
  • Returns: Bio::DB::SeqI object
  • 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.ini files
  • Returns: list of seqdatabase.ini paths
  • 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