SWISS::GN(3pm)
πΈ SWISS::GN π
okay bestie, gather round, because we're talking about SWISS::GN, a lil Perl module from the User Contributed Perl Documentation collection, and honestly? it's giving β¨specialistβ¨. no cap.
π Name π
SWISS::GN.pm β yes that's the whole name, she's lowkey mysterious like that π
π¦ Description π¦
so basically SWISS::GN represents one single gene name from the GN line. that's it. that's her job. one gene name, done immaculately. π
and if you're out here like "okay but what if I have, like, several synonym gene names" β bestie, that's a whole different girl. the container object for several synonym gene names is SWISS::GeneGroup. she's the group chat; SWISS::GN is the one-on-one. π
π Inherits from π
SWISS::BaseClass.pm β yeah she got it from her mama, iconic lineage fr fr π
π Attributes π
textβ literally just one gene name. that's the whole attribute. one name, living her best life. π
π§ Methods π§
β Standard methods β
the basics, the essentials, the main character trio:
newfromTexttoText
no notes. periodt. π
π« Reading/Writing methods π«
πΈ toMixedCase(@regexps) πΈ
okay so this one is the fun one, and the way that she works is: she converts gene names to mixed case, according to one or more regular expressions. you pass in @regexps β one or more of them, your call, bestie. π«Ά
this is typically useful for converting uppercase ORF numbers to mixed case. very glow-up, very makeover-montage energy. β¨
example time, because i know you love an example:
- the E.coli gene
"B1563", converted with the regexp'(b(\d{4}(\.\d)?))', will yield the gene name"b1563". slay. π₯
and she's not even done β the method also supports fused gene names. so like, "B0690/B0691" gets converted to "b0690/b0691". both of them. together. no gene left behind. ππ
heads up: the method changes the text of the SWISS::GN object and also returns the new text value. so she's doing both. overachiever behavior, we love to see it. π
and that's the whole page, bestie! this gorgeous little manual came to you from perl v5.32.1, dated 2021-08-15, so if you ever need to cite her, that's the receipt π§Ύπ mwah, study safe, hydrate, and may all your ORF numbers be mixed case ππ π
π¦ 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