Bio::S...ctionI(3pm)
π Bio::S...ctionI β the tea on the interface for a whole lil squad of SeqFeatureI objects π
okay bestie, welcome to the Bio::SeqFeature::CollectionI page, part of the User Contributed Perl Documentation over at perl v5.32.1. it's giving interface, it's giving "collection of things", and we're gonna walk through it together. no cap. β¨
πΈ NAME πΈ
Bio::SeqFeature::CollectionI β it's literally an interface for a collection of Bio::SeqFeatureI objects. that's the whole vibe. π
π¦ SYNOPSIS π¦
so like, you get a Bio::SeqFeature::CollectionI somehow β maybe a Bio::SeqFeature::Collection, iykyk β and then:
# get a Bio::SeqFeature::CollectionI somehow # perhaps a
# Bio::SeqFeature::Collection
use Bio::SeqFeature::Collection;
my $collection = Bio::SeqFeature::Collection->new();
$collection->add_features(\@featurelist);
$collection->features(-attributes =>
[ { 'location' => Bio::Location::Simple->new
(-start=> 1, -end => 300) ,
'overlaps' }]);
look at her go. iconic. π
π DESCRIPTION π
this interface describes the basic methods you need for a collection of Sequence Features. that's it, that's the whole job, and she does it beautifully. periodt. π
π FEEDBACK π
π Mailing Lists π
user feedback is an integral part of the evolution of this and other Bioperl modules β fr fr, they actually want to hear from you. send your comments and suggestions preferably to the Bioperl mailing list. your participation is much appreciated, bestie. π«Ά
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. like, no shade to the maintainer, it's just that many experienced and responsive experts 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 β the more deets the better, bestie. π
π 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
not me asking you to file an issue, but like, please do. π
π AUTHOR - Jason Stajich π
email jason@bioperl.org β shoutout to Jason for real. π«‘
β¨ APPENDIX β¨
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ β that's your cue, iykyk. π
π add_features π
- Title:
add_features - Usage:
$collection->add_features(\@features); - Function: (not specified β she's mysterious like that)
- Returns: number of features added
- Args: arrayref of
Bio::SeqFeatureIobjects to index
so you hand her an arrayref of Bio::SeqFeatureI objects and she indexes them, then tells you how many she added. simple. slay. π
π§ features π§
- Title:
features - Usage:
my @f = $collection->features(@args); - Returns: a list of
Bio::SeqFeatureIobjects - Args: see below
- Status: public
this routine will retrieve features associated with this collection object. it can be used to return all features, or a subset based on their type, location, or attributes. so many options, we love a flexible queen. π
-typesβ list of feature types to return. the argument is an array ofBio::Das::FeatureTypeIobjects or a set of strings that can be converted intoFeatureTypeIobjects.-callbackβ a callback to invoke on each feature. the subroutine will be passed to eachBio::SeqFeatureIobject in turn.-attributesβ a hash reference containing attributes to match.
the -attributes argument is a hashref containing one or more attributes to match against:
-attributes => { Gene => 'abc-1',
Note => 'confirmed' }
attribute matching is simple exact string matching, and multiple attributes are ANDed together. see Bio::DB::ConstraintsI for a more sophisticated take on this. β¨
if one provides a callback, it will be invoked on each feature in turn. if the callback returns a false value, iteration will be interrupted. when a callback is provided, the method returns undef. π
heads up bestie: callback returns false β iteration gets interrupted, and the method hands you back undef. plan accordingly. π
and that's the whole page, gorgeous. this was the Bio::S...ctionI(3pm) manpage from the User Contributed Perl Documentation, shipped with perl v5.32.1, dated 2021-08-15. mwah. go build something iconic with your feature collection. πππ¦β¨
π¦ 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