SWISS::ACs(3pm)
π 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 π¦
newfromTexttoTextsortβ 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
- 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