SWISS::OXs(3pm)

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

πŸ’– 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" β€” a ListBase object, and she holds a list of tax ids. that's it, that's the whole attribute, slay. ✨

⭐ Standard methods ⭐

the standard girlies, no cap:

  • new
  • fromText
  • toText

πŸŽ€ 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