Codota Logo
Interactor.getIdentifiers
Code IndexAdd Codota to your IDE (free)

How to use
getIdentifiers
method
in
psidev.psi.mi.jami.model.Interactor

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

  • Common ways to obtain Interactor
private void myMethod () {
Interactor i =
  • Codota IconParticipant participant;participant.getInteractor()
  • Smart code suggestions by Codota
}
origin: psidev.psi.mi.jami/jami-mitab

public void writeUniqueIdentifier(P participant) throws IOException {
  if (participant == null){
    writer.write(MitabUtils.EMPTY_COLUMN);
  }
  else {
    Interactor interactor = participant.getInteractor();
    // write first identifier
    if (!interactor.getIdentifiers().isEmpty()){
      writeIdentifier(interactor.getPreferredIdentifier());
    }
    else{
      writer.write(MitabUtils.EMPTY_COLUMN);
    }
  }
}
origin: psidev.psi.mi.jami/jami-mitab

Interactor interactor = participant.getInteractor();
if (interactor.getIdentifiers().size() > 1){
  Iterator<Xref> identifierIterator = interactor.getIdentifiers().iterator();
  boolean isFirst = true;
  Xref next = null;
origin: psidev.psi.mi.jami/jami-core

if (!interactor1.getIdentifiers().isEmpty() && !interactor2.getIdentifiers().isEmpty()){
  Iterator<Xref> iterator1 = interactor1.getIdentifiers().iterator();
    Xref altid1 = iterator1.next();
    for (Xref altid2 : interactor2.getIdentifiers()){
      if (DefaultExternalIdentifierComparator.areEquals(altid1, altid2)){
        return true;
origin: psidev.psi.mi.jami/jami-core

if (!interactor1.getIdentifiers().isEmpty() || !interactor2.getIdentifiers().isEmpty()){
  Collection<Xref> identifiers1 = interactor1.getIdentifiers();
  Collection<Xref> identifiers2 = interactor2.getIdentifiers();
  return identifierCollectionComparator.compare(identifiers1, identifiers2);
origin: psidev.psi.mi.jami/jami-core

/***
 * This method will copy properties of interactor source in interactor target and will override all the other properties of Target interactor.
 * @param source
 * @param target
 */
public static void copyAndOverrideBasicInteractorProperties(Interactor source, Interactor target){
  if (source != null && target != null){
    target.setShortName(source.getShortName());
    target.setFullName(source.getFullName());
    target.setInteractorType(source.getInteractorType());
    target.setOrganism(source.getOrganism());
    // copy collections
    target.getAnnotations().clear();
    target.getAnnotations().addAll(source.getAnnotations());
    target.getIdentifiers().clear();
    target.getIdentifiers().addAll(source.getIdentifiers());
    target.getAliases().clear();
    target.getAliases().addAll(source.getAliases());
    target.getXrefs().clear();
    target.getXrefs().addAll(source.getXrefs());
    target.getChecksums().clear();
    target.getChecksums().addAll(source.getChecksums());
  }
}
origin: psidev.psi.mi.jami/jami-core

if (!interactor.getIdentifiers().isEmpty()){
  List<Xref> list1 = new ArrayList<Xref>(interactor.getIdentifiers());
origin: psidev.psi.mi/psimi-schema-validator

final Set<String> dbRefs = RuleUtils.collectNames( dbs );
final Collection<Xref> identities = XrefUtils.searchAllXrefsHavingDatabaseAndQualifier(interactor.getIdentifiers(), dbMiRefs, dbRefs, Arrays.asList(Xref.IDENTITY_MI), Arrays.asList(Xref.IDENTITY));
final Set<String> dbRefs = RuleUtils.collectNames( dbs );
final Collection<Xref> identities = XrefUtils.searchAllXrefsHavingDatabaseAndQualifier(interactor.getIdentifiers(), dbMiRefs, dbRefs, Arrays.asList(Xref.IDENTITY_MI), Arrays.asList(Xref.IDENTITY));
if(identities.isEmpty() ) {
origin: psidev.psi.mi.jami/jami-mitab

protected void processInteractorPool(Collection<MitabXref> xref, InteractorPool interactor) {
  InteractorPool pool = (InteractorPool)interactor;
  for (Xref ref : xref){
    // we have a component of the interactor pool
    if (XrefUtils.doesXrefHaveQualifier(ref, Xref.INTERACTOR_SET_QUALIFIER_MI, Xref.INTERACTOR_SET_QUALIFIER)){
      Interactor subInteractor = interactorFactory.createInteractorFromDatabase(ref.getDatabase(), ref.getId().toLowerCase());
      if (subInteractor != null){
        subInteractor.getIdentifiers().add(new MitabXref(ref.getDatabase(), ref.getId(), ref.getVersion(), CvTermUtils.createIdentityQualifier()));
        ((MitabInteractor)subInteractor).setSourceLocator(((MitabXref)ref).getSourceLocator());
      }
      // create a default interactor
      else{
        subInteractor = interactorFactory.createInteractor(ref.getId().toLowerCase(), CvTermUtils.createUnknownInteractorType());
        subInteractor.getIdentifiers().add(new MitabXref(ref.getDatabase(), ref.getId(), ref.getVersion(), CvTermUtils.createIdentityQualifier()));
        ((MitabInteractor)subInteractor).setSourceLocator(((MitabXref)ref).getSourceLocator());
      }
      // add the component to the interactor pool
      pool.add(subInteractor);
    }
    // we have a simple xref
    else{
      pool.getXrefs().add(ref);
    }
  }
}
origin: psidev.psi.mi/psimi-schema-validator

Collection<Xref> identifiers = container.getIdentifiers();
origin: psidev.psi.mi.jami/jami-mitab

interactor.getIdentifiers().addAll(uniqueId);
origin: psidev.psi.mi.jami/jami-mitab

interactor.getIdentifiers().add(ref);
origin: psidev.psi.mi/psimi-schema-validator

for (Xref ref : interactor.getIdentifiers()){
  checkXref(messages, ref, interactor, "interactor");
origin: uk.ac.ebi.intact.dataexchange/structured-abstract

for (Xref xref : interactor.getIdentifiers()) {
  if (XrefUtils.isXrefFromDatabase(xref, Xref.UNIPROTKB_MI, Xref.UNIPROTKB)
      && XrefUtils.doesXrefHaveQualifier(xref, Xref.IDENTITY_MI, Xref.IDENTITY)){
psidev.psi.mi.jami.modelInteractorgetIdentifiers

Javadoc

Set of identifiers for this interactor. The identifiers can be from different databases, can be primary identifiers and secondary identifiers but they must be unambiguous. The Collection cannot be null, when an interactor does not have any identifiers, the method should return an empty Collection. Ex: uniprotkb secondary accession O00183, primary accessions, ...

Popular methods of Interactor

  • getShortName
    The short name of the interactor. It cannot be null or empty. Ex: brca2
  • getAliases
    Collection of aliases for an interactor The Collection cannot be null and if the interactor does not
  • getAnnotations
    Collection of annotations for an interactor. The set cannot be null and if the interactor does not h
  • getInteractorType
    The molecule type of this interactor. It is a controlled vocabulary term and cannot be null. Ex: pro
  • getOrganism
    The original source organism for this interactor. It can be null in case of chemical compounds/synth
  • getChecksums
    Set of checksums computed for this interactor. The Collection cannot be null so when an interactor d
  • getXrefs
    Collection of other xrefs that give more information about the interactor. Ex: GO references to give
  • getFullName
    The full name of the interactor. It can be null Ex: Breast cancer type 2 susceptibility protein
  • getPreferredIdentifier
    The identifier in the list of identifiers which is the preferred identifier. If no identifiers is pr
  • setFullName
    Sets the full name of the interactor
  • setOrganism
    Sets the source organism of this interactor
  • setInteractorType
    Sets the molecule type for this interactor If the given type is null, this method automatically sets
  • setOrganism,
  • setInteractorType,
  • setShortName

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now