Class DefaultGeneComparator


  • public class DefaultGeneComparator
    extends Object
    Default gene comparator. It will first use DefaultInteractorBaseComparator to compare the basic interactor properties If the basic interactor properties are the same, It will look at ensembl identifier if both are set. If the ensembl identifiers are not both set or are identical, it will look at the ensemblGenome identifiers. If at least one ensemblGemome identifiers is not set or both are identical, it will look at the entrez/gene id. If at least one entrez/gene id is not set or both are identical, it will look at the refseq identifiers.
    Since:
    15/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultGeneComparator

        public DefaultGeneComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Gene gene1,
                                        Gene gene2)
        Use DefaultGeneComparator to know if two genes are equals.
        Parameters:
        gene1 - a Gene object.
        gene2 - a Gene object.
        Returns:
        true if the two genes are equal