Class ImexAssignerImpl

  • All Implemented Interfaces:
    ImexAssigner

    public class ImexAssignerImpl
    extends Object
    implements ImexAssigner
    This class will assign an IMEx id to a publication using imex central webservice and update experiments and interactions
    Since:
    02/03/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • assignImexIdentifier

        public Publication assignImexIdentifier​(Publication publication,
                                                Publication imexPublication)
                                         throws BridgeFailedException
        Assign a new IMEx id to a publication that has not been assigned yet and update/clean up the annotations of the publication (full coverage and imex curation). It adds an IMEx primary reference to the intact publication. It is only possible to assign a new IMEx id to publications having valid pubmed ids (no unassigned and no DOI number)
        Specified by:
        assignImexIdentifier in interface ImexAssigner
        Parameters:
        publication - : the publication in IntAct
        imexPublication - : the publication in IMEx
        Returns:
        the imex id if the IMEx assigner was successful, null otherwise
        Throws:
        BridgeFailedException - if no record found or no IMEx id
      • getCurrentIndex

        protected int getCurrentIndex()

        Getter for the field currentIndex.

        Returns:
        a int.
      • getInteraction_imex_regexp

        protected Pattern getInteraction_imex_regexp()

        Getter for the field interaction_imex_regexp.

        Returns:
        a Pattern object.
      • setCurrentIndex

        protected void setCurrentIndex​(int currentIndex)

        Setter for the field currentIndex.

        Parameters:
        currentIndex - a int.