Bio::S...actory(3pm)

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

πŸ’– Bio::Seq::SeqFactory πŸ’–

okay bestie, so this page is from Bio::Seq::SeqFactory, which lives in the User Contributed Perl Documentation section of the manual (that's the 3pm vibe, iykyk). And like… it's giving factory energy. Let's get into it 🫢


✨ NAME ✨

Bio::Seq::SeqFactory β€” instantiation of generic Bio::PrimarySeqI (or derived) objects through a factory πŸ’…

no cap, that's literally the whole job. a lil factory that spits out sequence objects.


🌸 SYNOPSIS 🌸

use Bio::Seq::SeqFactory;
my $factory = Bio::Seq::SeqFactory->new();
my $primaryseq = $factory->create( -seq => 'WYRAVLC',
                                   -id  => 'name'     );

# Create Bio::Seq instead of Bio::PrimarySeq objects:
my $factory = Bio::Seq::SeqFactory->new( -type => 'Bio::Seq' );

see how easy that was?? copy, paste, slay. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so this object will build Bio::PrimarySeqI and Bio::SeqI objects generically. that's it. that's the whole vibe. it's a factory. it makes seqs. main character energy fr fr.


πŸ“¬ FEEDBACK πŸ“¬

πŸ’Œ Mailing Lists

user feedback is an integral part of the evolution of this and other Bioperl modules. so send your comments and suggestions, preferably to the Bioperl mailing list. your participation is much appreciated πŸ₯Ί

bioperl-l@bioperl.org                  - General discussion
http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

🫢 Support

please direct usage questions or support issues to the mailing list:

bioperl-l@bioperl.org

…rather than to the module maintainer directly. lowkey there are so many experienced and reponsive experts who will be able look at the problem and quickly address it. please include a thorough description of the problem with code and data examples if at all possible πŸ™

πŸ› Reporting Bugs

report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution. bug reports can be submitted via the web:

https://github.com/bioperl/bioperl-live/issues

πŸ‘‘ AUTHOR - Jason Stajich πŸ‘‘

Email jason@bioperl.org β€” iconic, we stan πŸ’œ


πŸŽ€ APPENDIX πŸŽ€

the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ (noted, bestie, noted).

🌟 new

Title   : new
Usage   : my $obj = Bio::Seq::SeqFactory->new();
Function: Builds a new Bio::Seq::SeqFactory object
Returns : Bio::Seq::SeqFactory
Args    : -type => string, name of a PrimarySeqI derived class
                   This is optional. Default=Bio::PrimarySeq.

so yeah, -type is optional β€” if you don't pass it, you get Bio::PrimarySeq by default. cute.

🌈 create

Title   : create
Usage   : my $seq = $seqbuilder->create(-seq => 'CAGT', -id => 'name');
Function: Instantiates new Bio::SeqI (or one of its child classes)
          This object allows us to genericize the instantiation of sequence
          objects.
Returns : Bio::PrimarySeq object (default)
          The return type is configurable using new(-type =>"...").
Args    : initialization parameters specific to the type of sequence
          object we want.  Typically
          -seq        => $str,
          -display_id => $name

this is the moment the factory actually does its thing. the return type is configurable using new(-type =>"..."), so you're never stuck with the default if you don't want it πŸ’…

⭐ type

Title   : type
Usage   : $obj->type($newval)
Function:
Returns : value of type
Args    : newvalue (optional)

getter/setter situation. pass a new value and it sets, don't pass one and it just tells you the value of type. classic ✨


⚠️ heads up bestie: that Function: line under type is literally empty in the original. not me forgetting it β€” it's just like that. we respect the source 😭

and that's the whole page!! no notes, ate and left no crumbs πŸ“πŸ§š

perl v5.32.1 Β· 2021-08-15 β€” mwah, that's the version and date this lil doc was generated, so if you're reading this from the future, hi, hope the seqs are sequencing πŸ’–

πŸ“¦ where this page comes from