Class DefaultProteinComparator


  • public class DefaultProteinComparator
    extends Object
    Default proteins comparator. It will first use DefaultPolymerComparator to compare the basic interactor properties If the basic interactor properties are the same, It will look for uniprotkb identifier if both are set. If the uniprotkb identifiers are not both set or are identical, it will look at the Refseq identifiers. If at least one Refseq/uniprot identifiers is not set, it will look at the rogids. If at least one rogid is not set or both are identical, it will look at the gene names.
    Since:
    15/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultProteinComparator

        public DefaultProteinComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Protein protein1,
                                        Protein protein2)
        Use DefaultProteinComparator to know if two proteins are equals.
        Parameters:
        protein1 - a Protein object.
        protein2 - a Protein object.
        Returns:
        true if the two proteins are equal