SWISS::Stars(3pm)
π NAME π
okay bestie, today's main character is SWISS::Stars.pm β and the page we're vibing on is the one and only SWISS::Stars(3pm), straight out of the User Contributed Perl Documentation π
β¨
πΈ DESCRIPTION πΈ
so SWISS::Stars is the class that represents the ** lines inside an SWISS-PROT + TrEMBL entry π§¬. these are the lines tagged ** that are, like, normally not publicly visible β secret little lines, iykyk π
SWISS::Stars is a master object in the same way SWISS::Entry is π. it holds subobjects, and those subobjects represent the different line types in the ** section. every line type gets its own two letter tag on top of the ** line tag. and the whole reason this module exists? so that adding brand-new ** line types is lowkey effortless π. to use a new ** line tag, you just dereference it with that tag as the object. example incoming:
$entry->Stars->XX->add("New XX tag line.","Second new XX tag line.");
now here's the tea β β if there is no class SWISS::Stars::XX, the class of your new object will be SWISS::Stars::default, and that default class handles lines with the matching tag as an array of lines. if you need something more specific than that, you can create your own class SWISS::Stars::XX by following the template of SWISS::Stars::default. there's a whole example of this already: SWISS::Stars::aa π
β οΈ important bestie, don't skip this: subclass names and new line tags have to be two-letter-tags. and no checks are made whether the tag you dereferenced is actually allowed. so like, it'll just let you do it. be normal about that π
access to the (old) unstructured ANNOTATOR'S SECTION is provided by the line tag 'aa':
$entry->Stars->aa->add("Testline 1.","Second new test line.");
and that right there will add those two lines into the ANNOTATOR'S SECTION π«Ά
π¦ Inherits from π¦
SWISS::BaseClass.pm β yeah she's got family, we love an inheritance moment π
β Attributes β
- no public attributes apart from the subclasses π that's it, that's the whole attribute list, we stay unbothered
π Methods π
β¨ Standard methods β¨
the classics, the icons, the ones you already know and love:
newfromTexttoTextupdate
and that's the whole page, bestie, you ate it ππ
this was SWISS::Stars(3pm) from perl v5.32.1, dated 2021-08-15 β go forth and dereference responsibly, 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