GO::Model::Xref(3pm)
π GO::Model::Xref π
okay bestie, welcome to GO::Model::Xref β it's part of the User Contributed Perl Documentation and it's literally just a cross reference to an external database. that's the whole vibe. π¦
β¨ NAME β¨
GO::Model::Xref β a cross reference to an external database π«Ά
β¨ SYNOPSIS β¨
my $xrefs = $term->dbxref_list();
foreach my $xref (@$xrefs) P
printf "Term %s has an xref %s:%s\n",
$term->name, $xref->xref_key, $xref->dbname;
}
(yes, that's exactly how it's written up there, no cap β copying the code verbatim is the whole assignment π)
β¨ DESCRIPTION β¨
so this class represents a cross reference to an external database. an Xref is made up of two things, and honestly that's it:
- a key β like the accession number, or whatever the value of the unique field being keyed off of is
- a database name
and theoretically those two together are enough to uniquely identify any databased entity. slay. π
β¨ NOTES β¨
like all the GO::Model::* classes, this one uses accessor methods to get or set its attributes. and the way it works is iconic:
- call the accessor with no arguments β you get the value of the attribute π
- pass in an argument β the attribuet gets set according to that argument β¨
for instance:
# this sets the value of the attribute
$my_object->attribute_name("my value");
# this gets the value of the attribute
$my_value = $my_object->attribute_name();
πΈ xref_key πΈ
- Alias β
acc - Alias β
accession - Usage β (not specified)
- Returns β (not specified)
- Args β (not specified)
accessor: gets/sets the key/id of the cross reference π
πΈ xref_keytype πΈ
- Usage β (not specified)
- Returns β (not specified)
- Args β (not specified)
accessor: gets/sets the key/id type of the cross reference π·οΈ
πΈ as_str πΈ
- Usage β (not specified)
- Returns β (not specified)
- Args β (not specified)
that's all the docs give us on this one, bestie. no description, no nothing. iconic mystery behavior π
πΈ xref_dbname πΈ
- Alias β
dbname - Usage β (not specified)
- Returns β (not specified)
- Args β (not specified)
accessor: gets/sets the database name of the cross reference ποΈ
must be a valid database name β like, non-negotiable, fr fr.
πΈ xref_desc πΈ
- Alias β
name - Usage β (not specified)
- Returns β (not specified)
- Args β (not specified)
accessor: gets/sets the description of the accession no π
useful for interpro β¨
πΈ to_xml πΈ
- Usage β
print $xref->to_xml() - Returns β
string - Args β
indent [integer]
XML representation π β but listen, you probably shouldn't call this directly. it'll be called by entities that own xrefs, so let them handle it, okay bestie? π
that's the whole page!! every flag, every alias, every accessor, all accounted for, periodt. π πΈ
author/source deets: this lil doc ships as part of the Perl documentation set, and its footer says perl v5.36.0, dated 2023-12-18. bye pookie, go set some attributes π«Άβ¨
π¦ where this page comes from
- debian trixie: libgo-perl 0.15-10 Β· Perl
- ubuntu noble: libgo-perl 0.15-10 Β· Perl
- ubuntu resolute: libgo-perl 0.15-10 Β· Perl
- ubuntu stonking: libgo-perl 0.15-10 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms