Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ensembl.variation.datamodel
Interface VariationGroup

All Superinterfaces:
  Persistent, java.io.Serializable

public interface VariationGroup
extends Persistent

Grouping of variations (aka haplotype set). A grouping of variations that have tight linkage. This is commonly known as a Haplotype Set. It can be viewed as a vertical grouping of AlleleGroups.

Author:
  Craig Melsopp

Method Summary
`void` | `addVariation(Variation variation)` Add variation to group.
`java.lang.String` | `getName()` name of this variation group
`java.lang.String` | `getSource()` The name of the database this variation group is from
`java.lang.String` | `getType()` Type of this group.
`java.util.List` | `getVariations()` Variations which make up this group.
`void` | `setName(java.lang.String name)` Set the name of this variation group.
`void` | `setSource(java.lang.String source)`
`void` | `setType(java.lang.String type)` Set the type of this group.

Methods inherited from interface org.ensembl.datamodel.Persistent
`getDriver, getInternalID, sameInternalID, setDriver, setInternalID`

Method Detail

### getName

    public java.lang.String getName()

  name of this variation group

  Returns:
    name of this variation group

### setName

    public void setName(java.lang.String name)

  Set the name of this variation group.

  Parameters:
    `name` - name of this variation group
  See Also:
    `getName()`

### getSource

    public java.lang.String getSource()

  The name of the database this variation group is from

  Returns:
    database name this group come from.

### setSource

    public void setSource(java.lang.String source)

  Parameters:
    `source` - name of source database this group come from.
  See Also:
    `getSource()`

### getType

    public java.lang.String getType()

  Type of this group. Must be either 'haplotype' or 'tag'.

  Returns:
    Type of this group, either 'haplotype' or 'tag'.

### setType

    public void setType(java.lang.String type)

  Set the type of this group. Must be either 'haplotype' or 'tag'.

  Parameters:
    `type` - either 'haplotype' or 'tag'.

### getVariations

    public java.util.List getVariations()

  Variations which make up this group.

  Returns:
    zero or more variations.

### addVariation

    public void addVariation(Variation variation)

  Add variation to group.

  Parameters:
    `variation` - variation to add to group.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD