Bio::I...ractSeq(3pm)

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

✨ 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_format
  • Usage β€” $self->_file_format
  • Function β€” 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 β€” fetch
  • Usage β€” $index->fetch( $id )
  • Function β€” Returns a Bio::Seq object from the index
  • Example β€” $seq = $index->fetch( 'dJ67B12' )
  • Returns β€” Bio::Seq object
  • Args β€” ID

_get_SeqIO_object

  • Title β€” _get_SeqIO_object
  • Usage β€” $index->_get_SeqIO_object( $file )
  • Function β€” Returns a Bio::SeqIO object for the file
  • Example β€” $seq = $index->_get_SeqIO_object( 0 )
  • Returns β€” Bio::SeqIO object
  • Args β€” File number (an integer)

get_Seq_by_id

  • Title β€” get_Seq_by_id
  • Usage β€” $seq = $db->get_Seq_by_id()
  • Function β€” retrieves a sequence object, identically to ->fetch, but here behaving as a Bio::DB::BioSeqI
  • Returns β€” new Bio::Seq object
  • Args β€” string represents the id

get_Seq_by_acc

  • Title β€” get_Seq_by_acc
  • Usage β€” $seq = $db->get_Seq_by_acc()
  • Function β€” retrieves a sequence object, identically to ->fetch, but here behaving as a Bio::DB::BioSeqI
  • Returns β€” new Bio::Seq object
  • Args β€” string represents the accession number

get_PrimarySeq_stream

  • Title β€” get_PrimarySeq_stream
  • Usage β€” $stream = get_PrimarySeq_stream
  • Function β€” Makes a Bio::DB::SeqStreamI compliant object which provides a single method, next_primary_seq
  • Returns β€” Bio::DB::SeqStreamI
  • Args β€” none

get_all_primary_ids

  • Title β€” get_all_primary_ids
  • Usage β€” @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 strings
  • Args β€” none

get_Seq_by_primary_id

  • Title β€” get_Seq_by_primary_id
  • Usage β€” $seq = $db->get_Seq_by_primary_id($primary_id_string);
  • Function β€” Gets a Bio::Seq object 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 get Bio::PrimarySeqI objects via the get_PrimarySeq_stream and the primary_id field on these objects are specified as the ids to use here.
  • Returns β€” A Bio::Seq object
  • Args β€” 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