Bio::D...ccessI(3pm)
β¨ NAME β¨
Bio::DB::RandomAccessI β the abstract interface for a sequence database, bestie π
πΈ SYNOPSIS πΈ
#
# get a database object somehow using a concrete class
#
$seq = $db->get_Seq_by_id('ROA1_HUMAN');
#
# $seq is a Bio::Seq object
#
π DESCRIPTION π
okay so real talk: this is a pure interface class. Like, that's literally all it is. It just defines the methods that the actual (concrete) classes are gonna implement later. no vibes of its own, just rules. periodt.
The Bio::DB::RandomAccessI class lays out what methods a generic database class should have. Right now it's giving exactly one thing: the ability to make Bio::Seq objects from a name (id) or from an accession number. that's the whole assignment, and it ate. π«Ά
π¦ CONTACT π¦
Ewan Birney <birney@ebi.ac.uk> originally wrote this class. iconic behavior, we love to see it π
π Support
Please send your usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
and NOT straight to the module maintainer, bestie, i'm begging π. There are sooo many experienced and responsive experts on there who can look at your problem and address it fast. If at all possible, include a thorough description of the problem along with code and data examples. the more detail the better fr fr.
π Reporting Bugs
Report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolutions (yes, both, it's a whole thing). Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π APPENDIX π
The rest of this documentation goes into detail on each of the object methods. Heads up: internal methods usually have a _ in front of them, iykyk. π
π« get_Seq_by_id
- Title β
get_Seq_by_id - Usage β
$seq = $db->get_Seq_by_id('ROA1_HUMAN') - Function β Gets a
Bio::Seqobject by its name - Returns β a
Bio::Seqobject, orundefif it's not found - Args β the id (as a string) of a sequence,
β get_Seq_by_acc
- Title β
get_Seq_by_acc - Usage β
$seq = $db->get_Seq_by_acc('X77802');
$seq = $db->get_Seq_by_acc(Locus => 'X77802');
- Function β Gets a
Bio::Seqobject by accession number - Returns β A
Bio::Seqobject, orundefif it's not found - Args β accession number (as a string), or a two element list consisting of
namespace=>accession - Throws β
"more than one sequences correspond to this accession"if the accession maps to multiple primary ids and the method is called in a scalar context
NOTE: the two-element form is what lets you choose the namespace for the accession number. that's the whole point of it, don't skip it π
π§ get_Seq_by_version
- Title β
get_Seq_by_version - Usage β
$seq = $db->get_Seq_by_version('X77802.1') - Function β Gets a
Bio::Seqobject by sequence version - Returns β A
Bio::Seqobject - Args β
accession.version(as a string) - Throws β
"acc.version does not exist"exception
and that's the whole page, bestie!! ππ This one's from perl v5.32.1, dated 2021-08-15, and it's the Bio::DB::RandomAccessI(3pm) manual β go forth and get_Seq something, you've got this πβ¨π¦
π¦ 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