Bio::D...pename(3pm)
π NAME π
Bio::DB::GFF::Typename β it's literally the name of a feature type, bestie π·οΈβ¨
(Also, hey, hi, welcome β you're reading the Bio::D...pename page from the User Contributed Perl Documentation collection. Come sit with me.)
β¨ SYNOPSIS β¨
use Bio::DB::GFF;
my $type = Bio::DB::GFF::Typename->new(similarity => 'BLAT_EST_GENOME');
my $segment = $segment->features($type);
okay so that's the whole vibe in four lines. iconic. π
π¦ DESCRIPTION π¦
Bio::DB::GFF::Typename objects wrap up the combo of feature method and source that the GFF flat file format uses. So like, whenever a Bio::DB::GFF module is asking for a "feature type," you can hand it one of these instead. π«Ά
And here's the slay part: there are only like a few types but so many features, so this module keeps a memory cache of unique types. Translation: two features with the same type will literally share the same Bio::DB::GFF::Typename object. no cap, same object, saving memory, we love efficiency π
πΈ METHODS πΈ
β new
Title : new
Usage : $type = Bio::DB::GFF::Typename->new($method,$source)
Function: create a new Bio::DB::GFF::Typename object
Returns : a new Bio::DB::GFF::Typename object
Args : method and source
Status : Public
make a brand new one, fresh out the box β¨
β method
Title : method
Usage : $method = $type->method([$newmethod])
Function: get or set the method
Returns : a method name
Args : new method name (optional)
Status : Public
get the method, or set it if you pass a new one. your call, main character π
β source
Title : source
Usage : $source = $type->source([$newsource])
Function: get or set the source
Returns : a source name
Args : new source name (optional)
Status : Public
same energy as method but for the source. get it, or set it. π
β asString
Title : asString
Usage : $string = $type->asString
Function: get the method and source as a string
Returns : a string in "method:source" format
Args : none
Status : Public
This method is used by operator overloading to overload the '""' operator. β so yeah, when you stringify the object, this is the girl doing the work π
β clone
Title : clone
Usage : $new_clone = $type->clone;
Function: clone this object
Returns : a new Bio::DB::GFF::Typename object
Args : none
Status : Public
This method creates an exact copy of the object. like a twin. a duplicate. the same but separate π§
β match
Title : match
Usage : $boolean = $type->match($type_or_string)
Function: fuzzy match on types
Returns : a flag indicating that the argument matches the object
Args : a Bio::DB::GFF::typename object, or a string in method:source format
Status : Public
It's a fuzzy match, so heads up on the rules bestie: this lets Sequence:Link and Sequence: match each other π― but it will NOT let Sequence:Link and Sequence:Genomic_canonical match. nope. not happening. π
π BUGS π
This module is still under development. π§ (she's a work in progress, we're all growing ok?)
π SEE ALSO π
bioperlBio::DB::GFFBio::DB::RelSegment
π 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.
okay that's the whole page, you ate that π«Ά this was perl v5.30.0, dated 2020-01-13, from the Bio::D...pename(3pm) page β mwah, go write some GFF, bestie π
β¨π
π¦ where this page comes from
- debian bookworm: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms