Class Chromosome

All Implemented Interfaces:
Identifiable

public class Chromosome extends AbstractIdentifiable
Immutable representation of a chromosome
  • Constructor Details

    • Chromosome

      public Chromosome()
      No-arg constructor added to satisfy javabean contract
    • Chromosome

      public Chromosome(String name, Taxon taxon)
    • Chromosome

      public Chromosome(String name, ExternalDatabase assemblyDatabase, BioSequence sequence, Taxon taxon)
  • Method Details

    • getName

      public String getName()
    • getAssemblyDatabase

      public ExternalDatabase getAssemblyDatabase()
      Returns:
      The database where we have the assesmbly of the chromosome, such as the GoldenPath.
    • getSequence

      public BioSequence getSequence()
      Returns:
      The sequence of the chromosome. This is typically going to be just a reference to the sequence in an external database.
    • getTaxon

      public Taxon getTaxon()
    • hashCode

      public int hashCode()
      Description copied from class: AbstractIdentifiable
      Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.
      Specified by:
      hashCode in class AbstractIdentifiable
    • equals

      public boolean equals(Object object)
      Description copied from class: AbstractIdentifiable
      Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.
      Specified by:
      equals in class AbstractIdentifiable
    • toString

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable