Tabnine Logo
Publication.getPubmedId
Code IndexAdd Tabnine to your IDE (free)

How to use
getPubmedId
method
in
psidev.psi.mi.jami.model.Publication

Best Java code snippets using psidev.psi.mi.jami.model.Publication.getPubmedId (Showing top 13 results out of 315)

origin: psidev.psi.mi.jami/jami-core

public void onPubmedIdUpdate(Publication publication, String oldId) {
  if (oldId == null){
    publicationChangeLogger.log(Level.INFO, "The pubmed id has been initialised for the publication " + publication.toString());
  }
  else if (publication.getPubmedId() == null){
    publicationChangeLogger.log(Level.INFO, "The pubmed id has been reset for the publication " + publication.toString());
  }
  else {
    publicationChangeLogger.log(Level.INFO, "The pubmed id " + oldId + " has been updated with " + publication.getPubmedId() + " in the publication " + publication.toString());
  }
}
origin: psidev.psi.mi.jami/jami-core

public static Xref getPubmedReference(Publication pub){
  if (pub == null){
    return null;
  }
  else if (pub.getPubmedId() == null){
    return null;
  }
  else{
    return XrefUtils.collectFirstIdentifierWithDatabaseAndId(pub.getIdentifiers(), Xref.PUBMED_MI, Xref.PUBMED, pub.getPubmedId());
  }
}
origin: psidev.psi.mi.jami/jami-core

public static String getPubmedId(Experiment exp){
  if (exp == null){
   return null; 
  }
  else if (exp.getPublication() == null){
    return null; 
  }
  else{
    return exp.getPublication().getPubmedId();
  }
}
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

@Override
public void onImexIdAssigned(Publication intactPublication, String imex) {
  String pubId = intactPublication.getPubmedId() != null ? intactPublication.getPubmedId() : intactPublication.getDoi();
  if (pubId == null && !intactPublication.getIdentifiers().isEmpty()){
    Xref id = intactPublication.getXrefs().iterator().next();
    pubId = id.getId();
  }
  NewAssignedImexEvent evt = new NewAssignedImexEvent(this, pubId, imex, null, null);
  getImexCentralManager().fireOnNewImexAssigned(evt);
}
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

@Override
public void onMissingImexId(Publication intactPublication) {
  String pubId = intactPublication.getPubmedId() != null ? intactPublication.getPubmedId() : intactPublication.getDoi();
  if (pubId == null && !intactPublication.getIdentifiers().isEmpty()){
    Xref id = intactPublication.getXrefs().iterator().next();
    pubId = id.getId();
  }
  ImexErrorEvent errorEvt = new ImexErrorEvent(this, ImexErrorType.no_IMEX_id, pubId, null, null, null, "Publication "
      + ((IntactPublication)intactPublication).getAc() + " does not have a valid IMEx id and is ignored.");
  imexCentralManager.fireOnImexError(errorEvt);
  // do not update experiments and interactions
  getImexCentralManager().setEnableExperimentsAndInteractionsUpdate(false);
}
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

@Override
public void onImexIdConflicts(Publication intactPublication, Collection<Xref> conflictingXrefs) {
  String pubId = intactPublication.getPubmedId() != null ? intactPublication.getPubmedId() : intactPublication.getDoi();
  if (pubId == null && !intactPublication.getIdentifiers().isEmpty()){
    Xref id = intactPublication.getXrefs().iterator().next();
    pubId = id.getId();
  }
  ImexErrorEvent errorEvt = new ImexErrorEvent(this, ImexErrorType.publication_imex_conflict, pubId, null, null, null,
      "Publication " + pubId + " cannot be updated because of IMEx identifier conflicts.");
  getImexCentralManager().fireOnImexError(errorEvt);
  // do not update experiments and interactions
  getImexCentralManager().setEnableExperimentsAndInteractionsUpdate(false);
}
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

@Override
public void onPublicationWhichCannotBeRegistered(Publication intactPublication) {
  String pubId = intactPublication.getPubmedId() != null ? intactPublication.getPubmedId() : intactPublication.getDoi();
  if (pubId == null && !intactPublication.getIdentifiers().isEmpty()){
    Xref id = intactPublication.getXrefs().iterator().next();
    pubId = id.getId();
  }
  // unassigned publication, cannot use the webservice to automatically assign IMEx id for now, ask the curator to manually register and assign IMEx id to this publication
  if (!Pattern.matches(ImexCentralManager.PUBMED_REGEXP.toString(), pubId)){
    log.warn("It is not possible to register an unassigned publication. " +
        "The publication needs to be registered manually by a curator in IMEx central.");
  }
  // the publication is already registered, we just update status and users
  else {
    ImexErrorEvent evt = new ImexErrorEvent(this, ImexErrorType.no_record_created, pubId, null, null, null,
        "It is not possible to register the publication " + pubId + " in IMEx central.");
    getImexCentralManager().fireOnImexError(evt);
  }
  // do not update experiments and interactions
  getImexCentralManager().setEnableExperimentsAndInteractionsUpdate(false);
}
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

@Override
public void onPublicationAlreadyRegisteredInImexCentral(Publication intactPublication, String imex) {
  String pubId = intactPublication.getPubmedId() != null ? intactPublication.getPubmedId() : intactPublication.getDoi();
  if (pubId == null && !intactPublication.getIdentifiers().isEmpty()){
    Xref id = intactPublication.getXrefs().iterator().next();
    pubId = id.getId();
  }
  // we already have an IMEx id in IMEx central, it is not possible to update the intact publication because we have a conflict
  ImexErrorEvent evt = new ImexErrorEvent(this, ImexErrorType.publication_already_in_imex,
      pubId, imex, null, null, "It is not possible to assign a valid IMEx id to the publication " + pubId
      + " because it already registered in IMEx central with another institution");
  getImexCentralManager().fireOnImexError(evt);
  // do not update experiments and interactions
  getImexCentralManager().setEnableExperimentsAndInteractionsUpdate(false);
}
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

@Override
public void onImexIdNotRecognized(Publication intactPublication, String imex) {
  String pubId = intactPublication.getPubmedId() != null ? intactPublication.getPubmedId() : intactPublication.getDoi();
  if (pubId == null && !intactPublication.getIdentifiers().isEmpty()){
    Xref id = intactPublication.getXrefs().iterator().next();
    pubId = id.getId();
  }
  ImexErrorEvent errorEvt = new ImexErrorEvent(this, ImexErrorType.imex_not_recognized, pubId, imex, null, null,
      "Publication " + ((IntactPublication)intactPublication).getAc() + " is not matching any record in IMEx central with id " + imex);
  getImexCentralManager().fireOnImexError(errorEvt);
  // do not update experiments and interactions
  getImexCentralManager().setEnableExperimentsAndInteractionsUpdate(false);
}
origin: psidev.psi.mi.jami/jami-core

  hashcode = 31*hashcode + pub.getImexId().hashCode();
else if (pub.getPubmedId() != null){
  hashcode = 31*hashcode + pub.getPubmedId().hashCode();
origin: psidev.psi.mi.jami/jami-core

String pubmed1 = publication1.getPubmedId();
String pubmed2 = publication2.getPubmedId();
String doi1 = publication1.getDoi();
String doi2 = publication2.getDoi();
origin: psidev.psi.mi.jami/jami-core

String pubmed1 = publication1.getPubmedId();
String pubmed2 = publication2.getPubmedId();
boolean hasPubmedId1 = pubmed1 != null;
boolean hasPubmedId2 = pubmed2 != null;
origin: uk.ac.ebi.intact.dataexchange.imex/imex-id-update

String pubId = publication.getPubmedId() != null ? publication.getPubmedId() : publication.getDoi();
String source = publication.getPubmedId() != null ? Xref.PUBMED : Xref.DOI;
if (pubId == null && !publication.getIdentifiers().isEmpty()){
  Xref id = publication.getXrefs().iterator().next();
psidev.psi.mi.jami.modelPublicationgetPubmedId

Javadoc

The pubmed identifier which identifies the publication. It is a shortcut for the first pubmed identifier in the collection of identifiers. It will be null if the collection of identifiers does not contain any pubmed identifiers.

Popular methods of Publication

  • getIdentifiers
    The publication identifiers. Usually a publication only has one pubmed id or DOI number, but it coul
  • getImexId
    IMEx identifier of the publication if it has been registered in IMEx central as a publication curate
  • getAuthors
    The List of authors with the same order as it appears in the publication. It cannot be null. If the
  • getSource
    The source which curated this publication. It can be an organization, institute, ... It can be null
  • getAnnotations
    Other publication annotations which can give more information about the curated publication. It cann
  • getPublicationDate
    The date of publication. It can be null if not published
  • getTitle
    The publication title. It can be null.
  • getXrefs
    Other cross references which give more information about the publication. It cannot be null. If the
  • getCurationDepth
    The curation depth for this publication. If the curation depth is undefined, the method should not r
  • getDoi
    The doi number which identifies the publication. It is a shortcut for the first doi in the collectio
  • getExperiments
    The curated experiments which have been described in the publication. It cannot be null. If no exper
  • getReleasedDate
    Publication released date by the interaction database or resource which curated the publication. It
  • getExperiments,
  • getReleasedDate,
  • setCurationDepth,
  • setJournal,
  • setPublicationDate,
  • setSource,
  • setTitle,
  • addAllExperiments,
  • addExperiment

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now