---
name: "SWISS::GeneGroup"
section: "3pm"
platform: "linux"
package: "libswiss-perl"
version: "1.80-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SWISS::GeneGroup"
---

# SWISS::GeneGroup(3pm)

## Name

SWISS::GeneGroup.pm

## Description

A **SWISS::GeneGroup** object contain all synonyms for a given gene name. See **SWISS::GNs** for a description of the gene name format.

## Inherits from

SWISS::BaseClass.pm

(also implements many methods from SWISS::ListBase.pm)

## Attributes

- "Names"

  ```
    Each list element is a SWISS::GN object, describing a primary name
    or synonym. Concatenation of Name and Synonyms lists.
  ```

- "OLN"

  ```
    Each list element is a SWISS::GN object, describing an
    OrderedLocusName.
  ```

- "ORFNames"

  ```
    Each list element is a SWISS::GN object, describing an ORFName.
  ```

## Methods

### Standard methods

- new

  - fromText

  - toText

  ### Specific methods

- Name

  Returns the Name (primary name).

- Synonyms

  Returns the Synonyms.

- elements

  ```
    Concatenates all elements from Names, OLN and ORFNames in
    a single array.
  ```

### List manipulation methods

Since GeneGroup was a previous implementation of SWISS::ListBase, the list manipulation methods below are provided to facilitate compatibility.

- 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)*
