Bio::D...atname(3pm)

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

πŸ’– Bio::DB::GFF::Featname β€” the name of a feature πŸ’–

okay bestie, pull up a chair πŸͺ‘ because we're talking about Bio::DB::GFF::Featname, a little Perl module from the Bio::DB::GFF family (shipped with perl v5.30.0, dated 2020-01-13, in the User Contributed Perl Documentation corner of the manual). It's a tiny icon and it does exactly one job, and honestly? It eats. πŸ’…


✨ NAME ✨

Bio::DB::GFF::Featname β€” the name of a feature πŸŽ€


🌸 SYNOPSIS 🌸

use Bio::DB::GFF;

my $db      = Bio::DB::GFF->new( -adaptor => 'dbi:mysql',
                                 -dsn     => 'dbi:mysql:elegans42');

my $feature = Bio::DB::GFF::Featname->new(Locus => 'unc-19');
my $segment = $db->segment($feature);

look at her go ✨ make the object, hand it to segment(), boom. main character behavior fr fr.


πŸ¦‹ DESCRIPTION πŸ¦‹

So like, Bio::DB::GFF::Featname is the name of a feature. That's the whole vibe. It's got exactly two fields living inside it: name and class. πŸ’–

Usually the Bio::DB::GFF module is the one using it, to denote a group. And it's accepted by Bio::DB::Relsegment->new() and Bio::DB::GFF->segment() as a glow-up replacement for the -name and -class arguments. so instead of passing two boring args, you pass one cute object. obsessed. 😌


πŸ’… METHODS πŸ’…

🌈 new

Title   : new
Usage   : $name = Bio::DB::GFF::Featname->new($class,$name)
Function: create a new Bio::DB::GFF::Featname object
Returns : a new Bio::DB::GFF::Featname object
Args    : class and ID
Status  : Public

🌈 id

Title   : id
Usage   : $id = $name->id
Function: return a unique ID for the combination of class and name
Returns : a string
Args    : none
Status  : Public

This one hands you back a unique combo of the name and the class, formatted as "class:name". And coincidentally?? that's the same format AceDB uses. twinning! πŸ‘―

🌈 name

Title   : name
Usage   : $name = $name->name
Function: return the name of the Featname
Returns : a string
Args    : none
Status  : Public

🌈 class

Title   : class
Usage   : $class = $name->class
Function: return the name of the Featname
Returns : a string
Args    : none
Status  : Public

(and yes, the Function line for class literally says "return the name of the Featname" β€” that's what the original says, so that's what you get. no notes. πŸ’€)

🌈 asString

Title   : asString
Usage   : $string = $name->asString
Function: same as name()
Returns : a string
Args    : none
Status  : Public

This method is out here overloading the "" operator β€” basically it's just name() with extra sparkle. ✨

🌈 clone

Title   : clone
Usage   : $new_clone = $type->clone;
Function: clone this object
Returns : a new Bio::DB::GFF::Featname object
Args    : none
Status  : Public

This method makes an exact copy of the object. a little clone army 🧚 no cap.


πŸ’€ BUGS πŸ’€

This module is still under development. 😭 it's giving work-in-progress, bestie β€” tread gently.

πŸ”₯ SEE ALSO πŸ”₯

  • bioperl
  • Bio::DB::GFF
  • Bio::DB::RelSegment

go read those next, iykyk 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lstein@cshl.org>. πŸŽ€

Copyright (c) 2001 Cold Spring Harbor Laboratory.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸ’œ


and that's the whole page, bestie! πŸ¦‹ this was Bio::D...atname(3pm) from perl v5.30.0, dated 2020-01-13, under User Contributed Perl Documentation. stay slay, stay documented, and remember: every feature deserves a name. periodt. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from