SWISS::OXs(3pm)
π SWISS::OXs π
ok so bestie, welcome to SWISS::OXs β this is the 3pm perl page for it, and it's genuinely such a little container icon, you're gonna love her. π
β¨ Name β¨
SWISS::OXs β she's the whole module, that's the name, no notes. π
πΈ Description πΈ
SWISS::OXs represents the OX lines inside an SWISS-PROT + TrEMBL entry, exactly as specified in the user manual over at http://www.expasy.org/sprot/userman.html β go read it, iykyk. πβ¨
And here's the vibe: the OXs object is a container object π«Ά β like, her whole job is holding a list of SWISS::OX objects, one for each currently permitted taxonomic resource. She's not doing the work, she's holding the girls. main character container energy fr fr. π
π¦ Inherits from π¦
She gets her whole inheritance from:
SWISS::BaseClass.pmβ yes she's a nepo baby and we love that for her π
π Attributes π
"NCBI_TaxID"β aListBaseobject, and she holds a list of tax ids. that's it, that's the whole attribute, slay. β¨
β Standard methods β
the standard girlies, no cap:
newfromTexttoText
π Example π
here's the whole thing in action, copy it exactly bestie, character for character:
$taxid = new SWISS::OX;
$taxid->text('1234');
$entry->OXs->NCBI_TaxID()->add($taxid);
foreach my $taxid ($entry->OXs->NCBI_TaxID()->elements()) {
print $taxid->text, "\n";
}
likeβ¦ we make a new SWISS::OX, we set its text to '1234', we add it into the entry's OXs β NCBI_TaxID() list, and then we loop over elements() and print each one's text with a newline. ate. π₯
π POD ERRORS π
not me having to tell you this but β the doc above had some coding errors, and they're explained right here:
Around line 129: =back doesn't take any parameters, but you said =back =head1 Methods
so yeah, around line 129 someone said =back and then also handed it parameters (=back =head1 Methods), which =back simply does not do. embarrassing behavior tbh π but we move. π
kisses, this page was brought to you by perl v5.32.1 π dated 2021-08-15 β¨ and that's the whole SWISS::OXs (3pm) situation β periodt. π
ππ
π¦ where this page comes from
- debian bookworm: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- debian trixie: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- ubuntu jammy: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- ubuntu noble: libswiss-perl 1.80-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms