Class Chromosome

    • Constructor Detail

      • Chromosome

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

        public Chromosome​(String name,
                          Taxon taxon)
    • Method Detail

      • 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