Class RogidGenerator


  • public class RogidGenerator
    extends Object
    Rogid generator
    Since:
    10/09/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • RogidGenerator

        public RogidGenerator()

        Constructor for RogidGenerator.

    • Method Detail

      • calculateSeguid

        public String calculateSeguid​(String sequence)
                               throws SeguidException
        calculates the Seguid for the given protein sequence
        Parameters:
        sequence - rogid sequence
        Returns:
        Seguid
        Throws:
        SeguidException - handled by psidev.psi.mi.jami.utils.checksum.SeguidException class
      • computeRogidFrom

        public String computeRogidFrom​(String sequence,
                                       String taxid)
                                throws SeguidException
        calculate Rogid for the give protein sequence+taxid Rogid = Sequid + taxid
        Parameters:
        sequence - protein sequence
        taxid - taxonomy id
        Returns:
        Rogid
        Throws:
        SeguidException - handled by psidev.psi.mi.jami.utils.checksum.SeguidException class