SWISS::GeneGroup(3pm)

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

✨ NAME ✨

SWISS::GeneGroup.pm β€” the Perl module that's basically a lil friend group for gene names πŸ’– (living in the SWISS::GeneGroup(3pm) era of the User Contributed Perl Documentation, iykyk)


🌸 DESCRIPTION 🌸

okay so bestie, listen. A SWISS::GeneGroup object holds all the synonyms for one given gene name. That's it, that's the job. It's giving "I collect every name this gene goes by" energy πŸ‘‘

Wanna know what the gene name format actually looks like? Go read SWISS::GNs, it spills all the tea on that.


🧬 INHERITS FROM 🧬

  • SWISS::BaseClass.pm

and also β€” plot twist β€” it implements many methods from SWISS::ListBase.pm too 🫢


πŸŽ€ ATTRIBUTES πŸŽ€

  • Names β€” every element in this list is a SWISS::GN object, describing a primary name or a synonym. Lowkey it's just the concatenation of the Name and Synonyms lists, no cap.
  • OLN β€” every element in this list is a SWISS::GN object, describing an OrderedLocusName.
  • ORFNames β€” every element in this list is a SWISS::GN object, describing an ORFName.

πŸ’… METHODS πŸ’…

⭐ Standard methods ⭐

  • new
  • fromText
  • toText

πŸ¦‹ Specific methods πŸ¦‹

  • Name β€” returns the Name, aka the primary name. The main character, fr fr.
  • Synonyms β€” returns the Synonyms. The supporting cast πŸ’œ
  • elements β€” concatenates all the elements from Names, OLN and ORFNames into a single array. One big happy family 🌈

🌸 List manipulation methods 🌸

so here's the lore: since GeneGroup was a previous implementation of SWISS::ListBase, all the list manipulation methods down below are provided just to facilitate compatibility. They're here for the vibes (and the backwards compat) 🫢

  • size
  • isEmpty
  • elements
  • filter
  • get (deprecated)
  • head (deprecated)
  • tail (deprecated)
  • item (deprecated)
  • push (deprecated)
  • pop (deprecated)
  • shift (deprecated)
  • splice (deprecated)
  • unshift (deprecated)
  • set (deprecated)
  • add (deprecated)
⚠️ heads up bestie: everything marked (deprecated) is deprecated. Still there, still works (probably), but like… it's giving legacy. Use with awareness, not with your whole heart πŸ’€

and that's the whole page, periodt πŸ’– this lil rewrite rides on perl v5.32.1, dated 2021-08-15 β€” shoutout to that vintage timestamp, she's iconic, no cap πŸŽ€βœ¨

πŸ“¦ where this page comes from