Bio::I...ractSeq(3pm)
β¨ NAME β¨
Okay bestie, gather round π β this is Bio::Index::AbstractSeq, and it's the base class for AbstractSeq. That's it, that's the job. It's the blueprint, the blueprint-iest blueprint, the mom of the whole indexer family π«Ά
πΈ SYNOPSIS πΈ
Wanna build your own sequence-file indexing package? Say less. You inherit, you fill in the blanks, you slay:
# Make a new sequence file indexing package
package MyShinyNewIndexer;
use base qw(Bio::Index::AbstractSeq);
# Now provide the necessary methods...
That's the whole vibe: subclass it, then hand over the methods it's begging you for β¨
π DESCRIPTION π
So here's the tea β β this module is the common base class for multiple sequence files built using the Bio::Index::Abstract system. And because it's generous like that, it also hands you a Bio::DB::SeqI interface. Lowkey the whole point. π
π FEEDBACK π
Mailing Lists
User feedback is literally an integral part of the evolution of this and other Bioperl modules π¦ β like, the modules grow because y'all talk to them. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated, no cap.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Usage questions and support issues? Direct them to the mailing list:
bioperl-l@bioperl.org
β¦not to the module maintainer directly, bestie, please π The whole point is that many experienced and responsive experts will be able to look at the problem and quickly address it. And if at all possible, include a thorough description of the problem, plus code and data examples. Give them something to work with, fr fr. π«Ά
Reporting Bugs
Report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution β it's giving organized π Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHOR - Ewan Birney π
Email birney@ebi.ac.uk
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ (iykyk β underscore means "we're in the backstage area").
π SEE ALSO π
Bio::Index::Abstract, which provides dbm indexing for flat files of any type β containing sequence or not, it does not care, it's flexible like that πββοΈ And heads up: Bio::Index::AbstractSeq inherits from Bio::Index::Abstract. Family tree, iconic. π³
_file_format
Titleβ_file_formatUsageβ$self->_file_formatFunctionβ Derived classes should override this method (it throws an exception here) to give the file format of the files used. So like, if you don't override it, it's gonna be dramatic about it. πExampleβReturnsβArgsβ
fetch
TitleβfetchUsageβ$index->fetch( $id )Functionβ Returns aBio::Seqobject from the indexExampleβ$seq = $index->fetch( 'dJ67B12' )ReturnsβBio::SeqobjectArgsβ ID
_get_SeqIO_object
Titleβ_get_SeqIO_objectUsageβ$index->_get_SeqIO_object( $file )Functionβ Returns aBio::SeqIOobject for the fileExampleβ$seq = $index->_get_SeqIO_object( 0 )ReturnsβBio::SeqIOobjectArgsβ File number (an integer)
get_Seq_by_id
Titleβget_Seq_by_idUsageβ$seq = $db->get_Seq_by_id()Functionβ retrieves a sequence object, identically to->fetch, but here behaving as aBio::DB::BioSeqIReturnsβ newBio::SeqobjectArgsβ string represents the id
get_Seq_by_acc
Titleβget_Seq_by_accUsageβ$seq = $db->get_Seq_by_acc()Functionβ retrieves a sequence object, identically to->fetch, but here behaving as aBio::DB::BioSeqIReturnsβ newBio::SeqobjectArgsβ string represents the accession number
get_PrimarySeq_stream
Titleβget_PrimarySeq_streamUsageβ$stream = get_PrimarySeq_streamFunctionβ Makes aBio::DB::SeqStreamIcompliant object which provides a single method,next_primary_seqReturnsβBio::DB::SeqStreamIArgsβ none
get_all_primary_ids
Titleβget_all_primary_idsUsageβ@ids = $seqdb->get_all_primary_ids()Functionβ gives an array of all the primary_ids of the sequence objects in the database. These maybe ids (display style) or accession numbers or something else completely different β they *are not* meaningful outside of this database implementation. Like, do not take them out in public, they have no context there πExampleβReturnsβ an array of stringsArgsβ none
get_Seq_by_primary_id
Titleβget_Seq_by_primary_idUsageβ$seq = $db->get_Seq_by_primary_id($primary_id_string);Functionβ Gets aBio::Seqobject by the primary id. The primary id in these cases has to come from$db->get_all_primary_ids. There is no other way to get (or guess) the primary_ids in a database. The other possibility is to getBio::PrimarySeqIobjects via theget_PrimarySeq_streamand the primary_id field on these objects are specified as the ids to use here.Returnsβ ABio::SeqobjectArgsβ primary id (as a string)Throwsβ"acc does not exist"exception π¨
And that's the whole page, bestie!! π This was Bio::I...ractSeq(3pm) β perl v5.32.1, dated 2021-08-15, straight from the User Contributed Perl Documentation crew. Now go forth and index something iconic β¨ππ¦
π¦ 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