SWISS::ACs(3pm)

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

πŸ’– SWISS::ACs πŸ’–

okay bestie, so this is a Perl module β€” it lives in the User Contributed Perl Documentation section, and its whole name is SWISS::ACs (yes with the double colon, that's just how Perl namespaces roll 🫢).


✨ Name ✨

SWISS::ACs β€” literally just the module name, no notes.


🌸 Description 🌸

SWISS::ACs is the little icon that represents the AC (accession) lines inside an SWISS-PROT + TrEMBL entry β€” exactly as the user manual says, which you can find at http://www.expasy.org/sprot/userman.html. πŸ’…

So the tea is: the SWISS-PROT format got a glow-up recently and now supports multiple AC lines. This module is fluent in all three versions, no cap:

  • Ordinary AC lines
AC   P10585;
  • The old temporary format (for internal use only, iykyk)
AC   Q57333; O08291; O08202; O08292; O08203; O08293; O08204; O08294;
**   O08205; O08295; O08206; O08296; O08207; O08297; O08208; O08298;
**   O08213;
  • and the new format
AC   Q57333; O08291; O08202; O08292; O08203; O08293; O08204; O08294;
AC   O08205; O08295; O08206; O08296; O08207; O08297; O08208; O08298;
AC   O08213;

But here's the plot twist bestie: SWISS::ACs will DROP those funny ** comment lines that sometimes show up trailing an AC line. Like, gone. Not invited to the function:

AC   Q48558; P71434;
**   MERGED 2 TREMBL ENTRIES.

And when it writes? This module will always write the new format with multiple AC lines. Periodt. πŸ’…


🧬 Inherits from 🧬

SWISS::ListBase.pm β€” it's giving nepo baby but make it inheritance. πŸ’€


πŸŽ€ Attributes πŸŽ€

  • "list" β€” this is an array holding a list of all the accession numbers linked to this entry, bestie. The first member is the primary accession number, and every one after it is a secondary accession number. So like, first one is the main character πŸ‘‘, the rest are the supporting cast. 🌈

⭐ Methods ⭐

πŸ¦‹ Standard methods πŸ¦‹

  • new
  • fromText
  • toText
  • sort β€” this one sorts the secondary AC numbers alphanumerically, meaning all of them except the first. And heads up fr fr: the primary AC number must never be sorted. It stays exactly where it is. Do not touch her. πŸ™ˆ

ok that's the whole page bestie, you ate that πŸ’…βœ¨

this was written by the Perl crew behind perl v5.32.1, dated 2021-08-15 β€” and it's still serving SWISS::ACs(3pm) realness. mwah πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from