Bio::S...actory(3pm)
π 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: thatFunction:line undertypeis 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
- 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